Remove _FORTIFY_SOURCE in implementation files.

This was causing conflicting declarations for the library definitions of
common functions like sprintf(), snprintf(), and strchr().

Change-Id: I5daaa8a58183aa0d4d0fae8a7cb799671810f576
This commit is contained in:
Stephen Hines 2013-10-01 15:02:07 -07:00
parent 76218efbeb
commit 35d937e4eb
3 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#undef _FORTIFY_SOURCE
#include <string.h> #include <string.h>
extern "C" char* strchr(const char* p, int ch) { extern "C" char* strchr(const char* p, int ch) {

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#undef _FORTIFY_SOURCE
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#undef _FORTIFY_SOURCE
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>