]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti Pendharkar <kp025370@broadcom.com>
Fri, 17 Oct 2025 04:25:49 +0000 (21:25 -0700)
committerKruti Pendharkar <kp025370@broadcom.com>
Fri, 17 Oct 2025 04:25:49 +0000 (21:25 -0700)
open-vm-tools/lib/include/vm_basic_defs.h

index af198df7389162e300113b6db6d544874ec48235..425455facd6fe4708b92e68a2a5cd9ba2fdc8cf9 100644 (file)
@@ -1089,4 +1089,21 @@ typedef int pid_t;
 #endif
 
 
+/*
+ * VMW_DECL_MIN_SIZE
+ *
+ *   Defines the minimum size of an array parameter. On capable C compilers,
+ *   this expands to the static keyword introduced in C99. Unsupported in C++.
+ *
+ *   TODO: Update the MSVC check after the following bug gets fixed:
+ *         https://developercommunity.visualstudio.com/t/c1/1475168
+ */
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+    !defined(_MSC_VER)
+   #define VMW_DECL_MIN_SIZE(_sz) static _sz
+#else
+   #define VMW_DECL_MIN_SIZE(_sz)
+#endif
+
+
 #endif // ifndef _VM_BASIC_DEFS_H_