OSDN Git Service

add configure option --enable-c99
authordis- <dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 8 Sep 2012 05:10:54 +0000 (05:10 +0000)
committerdis- <dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 8 Sep 2012 05:10:54 +0000 (05:10 +0000)
configure.in
src/h-type.h

index bb57a11..11b0273 100644 (file)
@@ -48,6 +48,9 @@ AC_ARG_ENABLE(worldscore,
 [  --disable-worldscore    disable worldscore support], ,AC_DEFINE(WORLD_SCORE, 1, [Allow the game to send scores to the score server]))
 AC_ARG_ENABLE(chuukei,
 [  --enable-chuukei        enable internet chuukei support], AC_DEFINE(CHUUKEI, 1, [Chuukei mode]))
+AC_ARG_ENABLE(c99,
+[  --enable-c99      use c99 option for typedef], AC_DEFINE(C99,
+ 1, [C99 Compile]))
 
 dnl -fno-strength-reduce prevents a bug in some versions of gcc
 if test "$GCC" = yes; then
index d4b8a7e..62d6a7b 100644 (file)
@@ -127,15 +127,8 @@ typedef unsigned short u16b;
 
 /* Signed/Unsigned 32 bit value */
 #ifdef C99
-
-#ifdef L64 /* 64 bit longs */
-typedef signed int s32b;
-typedef unsigned int u32b;
-#else
-typedef signed long s32b;
-typedef unsigned long u32b;
-#endif
-
+typedef int32_t s32b;
+typedef uint32_t u32b;
 #else
 typedef signed long s32b;
 typedef unsigned long u32b;