Don't include system headers within an extern C block
authorTrond Norbye <trond.norbye@gmail.com>
Mon, 13 Sep 2010 12:27:18 +0000 (14:27 +0200)
committerTrond Norbye <trond.norbye@gmail.com>
Mon, 13 Sep 2010 12:27:18 +0000 (14:27 +0200)
libhashkit/common.h

index b2aaf0e21524bf7f1998bac5dc77a6051e35139c..dff3ab0bc92eedaad6ffce0abb4ec138f20c5dfa 100644 (file)
@@ -9,10 +9,6 @@
 #ifndef HASHKIT_COMMON_H
 #define HASHKIT_COMMON_H
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include "config.h"
 
 #include <assert.h>
@@ -23,6 +19,10 @@ extern "C" {
 
 #include "hashkit.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 HASHKIT_LOCAL
 void md5_signature(const unsigned char *key, unsigned int length, unsigned char *result);