multiply overflow fixes
[swftools.git] / config.h.in
index c3b8502..60bf322 100644 (file)
@@ -55,6 +55,9 @@
 #undef HAVE_WCSCHR
 #undef HAVE_WCSDUP
 
+/* Define if you have the open64 function.  */
+#undef HAVE_OPEN64
+
 /* Define if you have the lrand48 function.  */
 #undef HAVE_LRAND48
 
@@ -79,6 +82,9 @@
 /* Define if you have the srand48 function.  */
 #undef HAVE_SRAND48
 
+/* Define if you have the calloc function.  */
+#undef HAVE_CALLOC
+
 /* Define if you have the stat function.  */
 #undef HAVE_STAT
 
 #endif
 #endif
 
+#ifndef WIN32
+#define CHECKS
+#endif
+
+// supply a substitute calloc function if necessary
+#ifndef HAVE_CALLOC
+#define calloc rfx_calloc_replacement
+#endif
+
+//#ifdef HAVE_BUILTIN_EXPECT
+#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
+# define likely(x)      __builtin_expect((x), 1)
+# define unlikely(x)    __builtin_expect((x), 0)
+#else
+# define likely(x)      (x)
+# define unlikely(x)    (x)
+#endif
+
 #endif