Permalink
Browse files

Winsdk 7 with VS 2012 fixes

  • Loading branch information...
Embedthis Software
Embedthis Software committed Dec 4, 2012
1 parent f79c4a3 commit adcb0e8b5fcb32d35f2cf7417c12f7100b275e67
Showing with 24 additions and 1 deletion.
  1. +5 −0 package/windows/removeFiles.c
  2. +7 −1 src/deps/sqlite/sqlite.c
  3. +5 −0 src/deps/sqlite/sqlite3.h
  4. +7 −0 src/utils/cgiProgram.c
@@ -9,6 +9,11 @@
Suppress MS VS warnings
*/
#define _CRT_SECURE_NO_WARNINGS
+/* Work-around to allow the windows 7.* SDK to be used with VS 2012 */
+#if _MSC_VER >= 1700
+ #define SAL_SUPP_H
+ #define SPECSTRING_SUPP_H
+#endif
#include "bit.h"
View
@@ -6,12 +6,18 @@
#if EMBEDTHIS_MODIFICATION
#include "bit.h"
-
#if VXWORKS
#ifndef _VSB_CONFIG_FILE
#define _VSB_CONFIG_FILE "vsbConfig.h"
#endif
#endif
+#if defined(_WIN32) || defined(WIN32)
+/* Work-around to allow the windows 7.* SDK to be used with VS 2012 */
+#if _MSC_VER >= 1700
+ #define SAL_SUPP_H
+ #define SPECSTRING_SUPP_H
+#endif
+#endif
#endif
#if BIT_PACK_SQLITE || BIT_SQLITE_PRODUCT
@@ -12,6 +12,11 @@
#undef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE 1
+/* Work-around to allow the windows 7.* SDK to be used with VS 2012 */
+#if _MSC_VER >= 1700
+ #define SAL_SUPP_H
+ #define SPECSTRING_SUPP_H
+#endif
#include "bit.h"
#ifndef _h_SQLITE3_
View
@@ -25,6 +25,13 @@
#ifndef _VSB_CONFIG_FILE
#define _VSB_CONFIG_FILE "vsbConfig.h"
#endif
+#if _WIN32 || WINCE
+/* Work-around to allow the windows 7.* SDK to be used with VS 2012 */
+#if _MSC_VER >= 1700
+ #define SAL_SUPP_H
+ #define SPECSTRING_SUPP_H
+#endif
+#endif
#include <errno.h>
#include <ctype.h>

0 comments on commit adcb0e8

Please sign in to comment.