- fix VC6 build

This commit is contained in:
Pierre Joye 2008-09-20 23:10:16 +00:00
parent a7279c4457
commit f6b2e89ea6

View file

@ -54,15 +54,15 @@ extern "C" {
/* /*
** Add the ability to mark interfaces as deprecated. ** Add the ability to mark interfaces as deprecated.
*/ */
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)) #if ZEND_GCC_VERSION >= 3001
/* GCC added the deprecated attribute in version 3.1 */
# define SQLITE_DEPRECATED __attribute__((deprecated)) # define SQLITE_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER) #elif defined(ZEND_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1300
# define SQLITE_DEPRECATED __declspec(deprecated) # define SQLITE_DEPRECATED __declspec(deprecated)
#else #else
# define SQLITE_DEPRECATED # define SQLITE_DEPRECATED
#endif #endif
/* /*
** Add the ability to mark interfaces as experimental. ** Add the ability to mark interfaces as experimental.
*/ */
@ -70,7 +70,7 @@ extern "C" {
/* I can confirm that it does not work on version 4.1.0... */ /* I can confirm that it does not work on version 4.1.0... */
/* First appears in GCC docs for version 4.3.0 */ /* First appears in GCC docs for version 4.3.0 */
#define SQLITE_EXPERIMENTAL __attribute__ ((warning ("is experimental"))) #define SQLITE_EXPERIMENTAL __attribute__ ((warning ("is experimental")))
#elif defined(_MSC_VER) #elif defined(_MSC_VER) && _MSC_VER >= 1500
#define SQLITE_EXPERIMENTAL __declspec(deprecated("was declared experimental")) #define SQLITE_EXPERIMENTAL __declspec(deprecated("was declared experimental"))
#else #else
#define SQLITE_EXPERIMENTAL #define SQLITE_EXPERIMENTAL