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

index aefcabc2a3dcf34b55c60e8d084f0992c24e92ea..764551c847f840ea45a8f99f67f57372f674b2b8 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 + '" ');