]> granicus.if.org Git - php/commitdiff
- MFB: correctly test the VCVERS (four digits now)
authorPierre Joye <pajoye@php.net>
Sun, 6 Jul 2008 09:56:01 +0000 (09:56 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 6 Jul 2008 09:56:01 +0000 (09:56 +0000)
win32/build/config.w32

index d83fb4ac1765e5345995383f91e4949838973bfc..cb56b9856109ec9507fe559a56443f469c1ce23a 100644 (file)
@@ -144,7 +144,7 @@ DEFINE('CFLAGS_PHP_OBJ', '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)');
 DEFINE("CFLAGS", "/nologo /FD $(BASE_INCLUDES) /D _WINDOWS \
 /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS");
 
-if (VCVERS < 14) {
+if (VCVERS < 1400) {
        // Enable automatic precompiled headers
        ADD_FLAG('CFLAGS', ' /YX ');
 
@@ -154,7 +154,7 @@ if (VCVERS < 14) {
        }
 }
 
-if (VCVERS >= 14) {
+if (VCVERS >= 1400) {
        // fun stuff: MS deprecated ANSI stdio and similar functions
        // disable annoying warnings.  In addition, time_t defaults
        // to 64-bit.  Ask for 32-bit.
@@ -301,7 +301,7 @@ function add_extra_dirs()
                for (i = 0; i < path.length; i++) {
                        f = FSO.GetAbsolutePathName(path[i]);
                        if (FSO.FolderExists(f)) {
-                               if (VCVERS <= 12 && f.indexOf(" ") >= 0) {
+                               if (VCVERS <= 1200 && f.indexOf(" ") >= 0) {
                                        ADD_FLAG("LDFLAGS", '/libpath:"\\"' + f + '\\"" ');
                                } else {
                                        ADD_FLAG("LDFLAGS", '/libpath:"' + f + '" ');