commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r835087 - /commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h
Date Wed, 11 Nov 2009 21:55:46 GMT
Author: mturk
Date: Wed Nov 11 21:55:46 2009
New Revision: 835087

URL: http://svn.apache.org/viewvc?rev=835087&view=rev
Log:
Fix config file

Modified:
    commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h

Modified: commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h?rev=835087&r1=835086&r2=835087&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/srclib/sqlite/config.h Wed Nov 11 21:55:46
2009
@@ -21,10 +21,56 @@
 extern "C" {
 #endif
 
-/* Just include our main config file
+/* Include our main config file
  */
 #include "acr_config.h"
 
+/* Sqlite expects undefs
+ */
+#ifndef STDC_HEADERS
+#define STDC_HEADERS 1
+#endif
+#if !HAVE_UNISTD_H
+#undef HAVE_UNISTD_H
+#endif
+#if !HAVE_STRINGS_H
+#undef HAVE_STRINGS_H
+#endif
+#if !HAVE_STRING_H
+#undef HAVE_STRING_H
+#endif
+#if !HAVE_STDINT_H
+#undef HAVE_STDINT_H
+#endif
+#if !HAVE_DLFCN_H
+#undef HAVE_DLFCN_H
+#endif
+#if !HAVE_LOCALTIME_R
+#undef HAVE_LOCALTIME_R
+#endif
+#if !HAVE_GMTIME_R
+#undef HAVE_GMTIME_R
+#endif
+#if !HAVE_FDATASYNC
+#undef HAVE_FDATASYNC
+#endif
+#if !HAVE_USLEEP
+#undef HAVE_USLEEP
+#endif
+#if !HAVE_INTTYPES_H
+#undef HAVE_INTTYPES_H
+#if defined(_WIN32)
+typedef char                int8_t;
+typedef short               int16_t;
+typedef int                 int32_t;
+typedef __int64             int64_t;
+typedef unsigned char       uint8_t;
+typedef unsigned short      uint16_t;
+typedef unsigned int        uint32_t;
+typedef unsigned __int64    uint64_t;
+#endif
+#endif
+
 #ifdef __cplusplus
 }
 #endif



Mime
View raw message