]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Thu, 16 Nov 2023 17:21:20 +0000 (09:21 -0800)
committerKaty Feng <fkaty@vmware.com>
Thu, 16 Nov 2023 17:21:20 +0000 (09:21 -0800)
open-vm-tools/lib/include/vm_basic_defs.h

index 8f5d226fdd50bf548c4503bd0da88230e8f7f124..04bb3d061b37cbe0557a09aac0481e8627361ca6 100644 (file)
@@ -604,22 +604,22 @@ typedef int pid_t;
 #endif
 
 #undef X86_ONLY
-#ifdef VM_X86_ANY
-# ifdef _MSC_VER
+#ifdef _MSC_VER
 /*
  * Old MSVC versions (such as MSVC 14.29.30133, used to build Workstation's
  * offset checker) are notorious to have non-standard __VA_ARGS__ handling.
  */
-#  define X86_ONLY(x)      x
-# else
-#  define X86_ONLY(...)    __VA_ARGS__
-# endif
-#else
-# ifdef _MSC_VER
-#  define X86_ONLY(x)
-# else
-#  define X86_ONLY(...)
-# endif
+#ifdef VM_X86_ANY
+#define X86_ONLY(x)      x
+#else
+#define X86_ONLY(x)
+#endif
+#else
+#ifdef VM_X86_ANY
+#define X86_ONLY(...)    __VA_ARGS__
+#else
+#define X86_ONLY(...)
+#endif
 #endif
 
 #undef DEBUG_ONLY