]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
More C++ goodness
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:05 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:05 +0000 (11:23 -0700)
C++ after the includes

open-vm-tools/lib/include/asyncsocket.h
open-vm-tools/lib/include/auth.h
open-vm-tools/lib/include/backdoor.h
open-vm-tools/lib/include/circList.h
open-vm-tools/lib/include/codeset.h
open-vm-tools/lib/include/config.h
open-vm-tools/lib/include/cryptoError.h

index 27bf03d287c34f812886396421772e93ac6a163f..0ae1c3a8b280d0c4570e8949d43d5aacae3771e5 100644 (file)
 #define INCLUDE_ALLOW_USERLEVEL
 #include "includeCheck.h"
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 #ifdef __APPLE__
 #include <TargetConditionals.h>
 #endif
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /*
  * Error codes
  */
index afc86d4764ba7debe3bfed909bf45017b01518b7..386773e0622ba6fdbeb84db8c44629550125909d 100644 (file)
 #ifndef _AUTH_H_
 #define _AUTH_H_
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 /*
  * auth.h --
  *
@@ -46,6 +42,10 @@ extern "C" {
    typedef const struct passwd * AuthToken;
 #endif
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #if _WIN32
 
 BOOL Auth_StoreAccountInformation(const char *username, const char *password);
index 22fe36866a7305fd892fa08ae8c4b9abcef79a06..373d981e4aaf2e60b25be521d921776e330eaabe 100644 (file)
 #ifndef _BACKDOOR_H_
 #define _BACKDOOR_H_
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 #include "vm_basic_types.h"
 #include "vm_assert.h"
 
 #include "backdoor_types.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 void
 Backdoor(Backdoor_proto *bp); // IN/OUT
 
index 0618a38a825350a63304881ae634ef0a8cd75be2..61b062f4985214b0d3a3219b332aefe9ac146839 100644 (file)
 #define INCLUDE_ALLOW_VMKERNEL
 #include "includeCheck.h"
 
+#include "vmware.h"
+
 #if defined(__cplusplus)
 extern "C" {
 #endif
 
-#include "vmware.h"
-
 typedef struct ListItem {
    struct ListItem *prev;
    struct ListItem *next;
index 1bdac0d039dcd94b9f7504dba4459f61983b1a0f..66f42109951fa6d09668709b4f61c96513fe24dd 100644 (file)
 #ifndef __CODESET_H__
 #   define __CODESET_H__
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 #include "vm_basic_types.h"
 #include "vm_assert.h"
 #include "dynbuf.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /*
  * These platforms use UTF-8 (or pretend to):
  *   FreeBSD: really UTF-8
index 95aa598710e6c6f69070137fa272771a780894ec..47e3a708986c984734edff947d8237cd9c96fe78 100644 (file)
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
 
+#include "vm_basic_types.h"
+#include "preference.h"
+
 #if defined(__cplusplus)
 extern "C" {
 #endif
 
-#include "vm_basic_types.h"
-#include "preference.h"
-
 /*
  * Well-known configuration variable names
  */
index 8a189230f4591068f9a79d60d9d4e8f1b397820e..fdc2176c542a524d43beb49a88662d9e055f176a 100644 (file)
 #define INCLUDE_ALLOW_VMCORE
 #include "includeCheck.h"
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
 #include "vmware.h"
 
 typedef int CryptoError;
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /*
  * This set of errors should not be expanded beyond a maximum value of 15
  * without also updating the code for AIOMgr errors, which allots only 4 bits