#define _ATOMIC_H_
#define INCLUDE_ALLOW_USERLEVEL
-
#define INCLUDE_ALLOW_MODULE
#define INCLUDE_ALLOW_VMMON
#define INCLUDE_ALLOW_VMKDRIVERS
#include "vm_basic_types.h"
#include "vm_assert.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/*
* In the Atomic_* definitions below, memory ordering and atomicity are somewhat
* conflated in an inconsistent manner. First, we have Atomic_{Read,Write},
#undef ATOMIC_COMPILER_BARRIER
#endif /* ATOMIC_COMPILER_BARRIER */
+#if defined(__cplusplus)
+} // extern "C"
+#endif
+
#endif // ifndef _ATOMIC_H_