- 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.
*/
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
/* GCC added the deprecated attribute in version 3.1 */
#define SQLITE_DEPRECATED __attribute__ ((deprecated))
#elif defined(_MSC_VER)
#define SQLITE_DEPRECATED __declspec(deprecated)
#if ZEND_GCC_VERSION >= 3001
# define SQLITE_DEPRECATED __attribute__((deprecated))
#elif defined(ZEND_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1300
# define SQLITE_DEPRECATED __declspec(deprecated)
#else
#define SQLITE_DEPRECATED
# define SQLITE_DEPRECATED
#endif
/*
** 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... */
/* First appears in GCC docs for version 4.3.0 */
#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"))
#else
#define SQLITE_EXPERIMENTAL