netapi: add c++ guard.
authorGünther Deschner <gd@samba.org>
Tue, 12 Aug 2008 17:38:22 +0000 (19:38 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 13 Aug 2008 11:32:23 +0000 (13:32 +0200)
Guenther

source/lib/netapi/netapi.h

index e9fcc3777a65b6a9f29d392768fe7164db75b11c..ce97e4c02e8ecf25fb47b10727585e824ebec6f2 100644 (file)
 #ifndef __LIB_NETAPI_H__
 #define __LIB_NETAPI_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
 /****************************************************************
  NET_API_STATUS
 ****************************************************************/
@@ -459,4 +463,8 @@ NET_API_STATUS NetQueryDisplayInformation(const char * server_name /* [in] [uniq
                                          uint32_t *entries_read /* [out] [ref] */,
                                          void **buffer /* [out] [noprint,ref] */);
 
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __LIB_NETAPI_H__ */