Skip to content
Snippets Groups Projects
Commit a76dfa58 authored by deuce's avatar deuce
Browse files

Update to C99 and use -Wall -pedantic

parent 5baf677b
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ include ${SRC_ROOT}/build/Common.gmake
# OpenDoors
LDFLAGS += -L$(SRC_ROOT)/odoors/libs-`uname`
CFLAGS += -I$(SRC_ROOT)/odoors
CFLAGS += -I$(SRC_ROOT)/odoors -Wall -pedantic -std=c99
ifdef STATIC
LDFLAGS += -static
......
......@@ -2,7 +2,8 @@
#ifdef _MSC_VER
#define INT64 __int64
#else
#define INT64 long long int
#include <inttypes.h>
#define INT64 int64_t
#endif
#endif
......@@ -13,7 +14,7 @@
#ifdef _MSC_VER
#define INT64FORMAT "I64d"
#else
#define INT64FORMAT "lld"
#define INT64FORMAT PRId64
#endif
#endif
#endif
......@@ -22,7 +23,7 @@
#ifdef _MSC_VER
#define QWORD unsigned _int64
#else
#define QWORD unsigned long long int
#define QWORD uint64_t
#endif
#endif
......@@ -33,7 +34,7 @@
#ifdef _MSC_VER
#define QWORDFORMAT "I64u"
#else
#define QWORDFORMAT "llu"
#define QWORDFORMAT PRIu64
#endif
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment