[cmake-commits] king committed curl.h 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Mar 16 17:44:41 EST 2007
Update of /cvsroot/CMake/CMake/Utilities/cmcurl/curl
In directory public:/mounts/ram/cvs-serv2844
Modified Files:
curl.h
Log Message:
COMP: Do not #include files inside extern "C" {} blocks.
Index: curl.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Utilities/cmcurl/curl/curl.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- curl.h 15 Mar 2007 19:22:15 -0000 1.2
+++ curl.h 16 Mar 2007 22:44:39 -0000 1.3
@@ -139,6 +139,10 @@
#define WIN32 1
#endif
+#ifdef __cplusplus
+}
+#endif
+
#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__GNUC__) && \
!defined(__CYGWIN__) || defined(__MINGW32__)
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H))
@@ -164,6 +168,10 @@
#include <sys/types.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef curl_socket_typedef
/* socket typedef */
#ifdef WIN32
@@ -1121,10 +1129,17 @@
CURL_TIMECOND_LAST
} curl_TimeCond;
+#ifdef __cplusplus
+}
+#endif
+
#ifdef __BEOS__
#include <support/SupportDefs.h>
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
/* curl_strequal() and curl_strnequal() are subject for removal in a future
libcurl, see lib/README.curlx for details */
More information about the Cmake-commits
mailing list