]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files; not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Wed, 7 Feb 2018 00:32:39 +0000 (16:32 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 7 Feb 2018 00:32:39 +0000 (16:32 -0800)
open-vm-tools/lib/guestApp/guestApp.c
open-vm-tools/lib/include/libExport.hh

index 3a7b3042f174a65a061f2ed39c47982501b779e3..315f3e3e59cb614099c4d8377a8f5a305187d8cd 100644 (file)
 #include <stdio.h>
 #include <string.h>
 
+#ifdef _MSC_VER
+#include <windows.h>
+#include <shlobj.h>
+#include "productState.h"
+#include "winregistry.h"
+#include "windowsUtil.h"
+#endif
+
 #include "vmware.h"
 #include "vm_version.h"
 #include "vm_tools_version.h"
 #include "posix.h"
 #include "vmware/guestrpc/tclodefs.h"
 
-#ifdef _MSC_VER
-#include <windows.h>
-#include <shlobj.h>
-#include "productState.h"
-#include "winregistry.h"
-#include "windowsUtil.h"
-#endif
-
 /*
  * For Netware/Linux/BSD/Solaris, the install path
  * is the hardcoded value below. For Windows, it is
index 2dc4bd28e796798e812191807a8425aaf5f162ba..4bb1bfa07c92b4e4e9fa8371bf7e9c13e130550a 100644 (file)
 
 #include "vm_api.h"
 
-#ifdef LIB_EXPORT_SOURCE
-   #define LIB_EXPORT VMW_LIB_DYNAMIC
-#else
-   #define LIB_EXPORT VMW_LIB_CLIENT
+#ifndef LIB_EXPORT
+   #ifdef LIB_EXPORT_SOURCE
+      #define LIB_EXPORT VMW_LIB_DYNAMIC
+   #else
+      #define LIB_EXPORT VMW_LIB_CLIENT
+   #endif
 #endif
 
-#ifdef LIB_EXPORT_WUI_SOURCE
-   #define LIB_EXPORT_WUI VMW_LIB_DYNAMIC
-#else
-   #define LIB_EXPORT_WUI VMW_LIB_CLIENT
+#ifndef LIB_EXPORT_WUI
+   #ifdef LIB_EXPORT_WUI_SOURCE
+      #define LIB_EXPORT_WUI VMW_LIB_DYNAMIC
+   #else
+      #define LIB_EXPORT_WUI VMW_LIB_CLIENT
+   #endif
 #endif
 
-#ifdef VMSTRING_EXPORT_SOURCE
-   #define VMSTRING_EXPORT VMW_LIB_DYNAMIC
-#else
-   #define VMSTRING_EXPORT VMW_LIB_CLIENT
+#ifndef VMSTRING_EXPORT
+   #ifdef VMSTRING_EXPORT_SOURCE
+      #define VMSTRING_EXPORT VMW_LIB_DYNAMIC
+   #else
+      #define VMSTRING_EXPORT VMW_LIB_CLIENT
+   #endif
 #endif
 
 #endif // LIB_EXPORT_HH