Permalink
Browse files

Merge branch 'master' of git://github.com/meh/craftd

  • Loading branch information...
kev009 committed Apr 22, 2011
2 parents bc740cc + 8ef50ed commit f09527c624c792ab046aab6b5f470036def842f7
Showing with 9 additions and 1 deletion.
  1. +9 −1 include/craftd/common.h
View
@@ -56,7 +56,15 @@
#include <craftd/config.h>
-#if (SIZEOF_FUNCTION_POINTER == 4 && SIZEOF_POINTER == 4) || (SIZEOF_FP == 4 && SIZEOF_INTPTR_T == 4)
+#ifdef SIZEOF_FP
+# define SIZEOF_FUNCTION_POINTER SIZEOF_FP
+#endif
+
+#ifdef SIZEOF_INTPTR_T
+# define SIZEOF_POINTER SIZEOF_INTPTR_T
+#endif
+
+#if SIZEOF_FUNCTION_POINTER == 4 && SIZEOF_POINTER == 4
typedef int32_t CDPointer;
#else
typedef int64_t CDPointer;

0 comments on commit f09527c

Please sign in to comment.