* Fix __cplusplus macro usage.
authorUrban Wallasch <urban.wallasch@freenet.de>
Thu, 23 Apr 2020 08:24:08 +0000 (10:24 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Thu, 23 Apr 2020 08:24:08 +0000 (10:24 +0200)
dict/dict.h
mkdirp/mkdirp.h
net/net.h
str/str.h
tmalloc/tmalloc.c
tmalloc/tmalloc.h

index cdadc746d049f30ae6f10cb1605b579fd40e9678..9239affdaf2abe7f927fb182bff3c530207bd79b 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef DICT_H_INCLUDED
 #define DICT_H_INCLUDED
 
-#ifdef cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -112,7 +112,7 @@ const char *dict_getstr(dict_t *d, const char *key);
 int dict_remove(dict_t *d, const char *key);
 
 
-#ifdef cplusplus
+#ifdef __cplusplus
 }
 #endif
 
index 35a71d676a42ac724ba0f2d8f2126a567f53bd83..271e9f8f5905d839e68234952ddbff765fbb1779 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef MKDIRP_H_INCLUDED
 #define MKDIRP_H_INCLUDED
 
-#ifdef cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -35,7 +35,7 @@ extern "C" {
 extern int mkdirp(const char *pathname, mode_t mode);
 
 
-#ifdef cplusplus
+#ifdef __cplusplus
 }
 #endif
 
index a57f50bfc1e50d08e84fc0b9dadf4f357e0f9278..8dd5a827ea357395062b404962369c84d6c5cfbf 100644 (file)
--- a/net/net.h
+++ b/net/net.h
@@ -34,7 +34,7 @@
 #ifndef NET_H_
 #define NET_H_
 
-#ifdef cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -249,7 +249,7 @@ extern ssize_t sendto_tm(int fd, const void *buf, size_t len, int flags,
 extern int64_t sendfile_tm(int out_fd, int in_fd, int64_t count, int timeout);
 
 
-#ifdef cplusplus
+#ifdef __cplusplus
 }
 #endif
 
index 86d299ff0630e01567fac64b7d02ffb013451d3e..0005b8bb5fac845497511e4cb66534ea748c4e80 100644 (file)
--- a/str/str.h
+++ b/str/str.h
@@ -64,7 +64,7 @@
 #ifndef STR_H_
 #define STR_H_
 
-#ifdef cplusplus
+#ifdef __cplusplus
 extern "C" {
 #endif
 
@@ -577,7 +577,7 @@ static inline char *str_napp(char **s1, const char *s2, size_t n) {
 }
 
 
-#ifdef cplusplus
+#ifdef __cplusplus
 }
 #endif
 
index 8269b5c80f004b3611b56901fad94d3e55129ce3..b661b2a893fa34d31d9b7b910d935a31a64a0793 100644 (file)
@@ -25,7 +25,7 @@
  *
  */
 
-#ifdef cplusplus
+#ifdef __cplusplus
 #warning "You probably do not want to use this code in a C++ project!"
 #endif
 
index 7dbef6ca11cd2a21a36b76a43e504c2b73639742..76e2bfbe8ae7a14906c3e168a3a059432fc5801c 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef TMALLOC_H_INCLUDED
 #define TMALLOC_H_INCLUDED
 
-#ifdef cplusplus
+#ifdef __cplusplus
 #warning "You probably do not want to use this code in a C++ project!"
 extern "C" {
 #endif
@@ -66,7 +66,7 @@ extern int tmalloc_check(void);
 extern void tmalloc_stat(void);
 
 
-#ifdef cplusplus
+#ifdef __cplusplus
 }
 #endif