The GCC magic to warn about experimental interfaces does not work
on gcc version 4.1.0. Add #ifdefs to work around this. (CVS 5552)
FossilOrigin-Name: 90cae83169de980c6548ca6b57f4c65419e8eb13
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 58185d5..1e5cb6a 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -30,7 +30,7 @@
** the version number) and changes its name to "sqlite3.h" as
** part of the build process.
**
-** @(#) $Id: sqlite.h.in,v 1.389 2008/08/11 17:27:02 shane Exp $
+** @(#) $Id: sqlite.h.in,v 1.390 2008/08/11 18:29:38 drh Exp $
*/
#ifndef _SQLITE3_H_
#define _SQLITE3_H_
@@ -66,8 +66,9 @@
/*
** Add the ability to mark interfaces as experimental.
*/
-#if (__GNUC__ > 3)
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
/* GCC added the warning attribute in version 4.0 (I think) */
+ /* I can confirm that it does not work on version 4.1.0... */
#define SQLITE_EXPERIMENTAL __attribute__ ((warning ("is experimental")))
#elif defined(_MSC_VER)
#define SQLITE_EXPERIMENTAL __declspec(deprecated("was declared experimental"))