Author: mysqlpp
Date: Wed Apr 5 03:32:53 2006
New Revision: 1282
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1282&view=rev
Log:
Disabling the multiply defined static member fix test when Visual C++
2003 is detected.
Modified:
trunk/examples/util.cpp
Modified: trunk/examples/util.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/util.cpp?rev=1282&r1=1281&r2=1282&view=diff
==============================================================================
--- trunk/examples/util.cpp (original)
+++ trunk/examples/util.cpp Wed Apr 5 03:32:53 2006
@@ -34,8 +34,12 @@
// This include isn't needed by util module. It's just a test of the
// new SSQLS feature allowing the structure to be defined in many
// modules without having a multiply-defined static variable error.
-#define MYSQLPP_SSQLS_NO_STATICS
-#include "stock.h"
+// Don't do this for VC++ 2003: it doesn't support variadic macros,
+// which this feature depends on.
+#if !defined(_MSC_VER) || _MSC_VER >= 1400
+# define MYSQLPP_SSQLS_NO_STATICS
+# include "stock.h"
+#endif
using namespace std;
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits