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