Modern Borland C now seems to have anon unions for info.wProcessorArchitecture
Vadim Konovalov [Mon, 11 Sep 2000 11:22:33 +0000 (15:22 +0400)]
Subject: borland C++ win32.c tweak
Message-ID: <402099F49BEED211999700805FC7359F6FB379@ru0028exch01.spb.lucent.com>

p4raw-id: //depot/perl@7050

win32/win32.c

index 9fc83c1..9cc714f 100644 (file)
@@ -1633,7 +1633,7 @@ win32_uname(struct utsname *name)
        char *arch;
        GetSystemInfo(&info);
 
-#if defined(__BORLANDC__) || defined(__MINGW32__)
+#if (defined(__BORLANDC__)&&(__BORLANDC__<=0x520)) || defined(__MINGW32__)
        switch (info.u.s.wProcessorArchitecture) {
 #else
        switch (info.wProcessorArchitecture) {