Move nested headers into complation guard;
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jan 2009 18:09:48 +0000 (18:09 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Jan 2009 18:09:48 +0000 (18:09 +0000)
prepare for #inclusion in C++

git-svn-id: svn://svn.open-ils.org/ILS/trunk@11769 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/include/openils/oils_idl.h

index de44f55..d8a1093 100644 (file)
@@ -1,9 +1,13 @@
+#ifndef OILS_IDL_API
+#define OILS_IDL_API
+
 #include "opensrf/log.h"
 #include "opensrf/utils.h"
 #include "opensrf/osrf_hash.h"
 
-#ifndef OILS_IDL_API
-#define OILS_IDL_API
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 osrfHash* oilsIDLInit( const char* );
 osrfHash* oilsIDL(void);
@@ -48,4 +52,8 @@ int oilsIDL_classIsFieldmapper(const char*);
 char * oilsIDL_pton(const char *, int);
 int oilsIDL_ntop(const char *, const char *);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif