]> granicus.if.org Git - curl/commitdiff
libtests: build adjustment
authorYang Tse <yangsita@gmail.com>
Tue, 10 Apr 2012 15:29:37 +0000 (17:29 +0200)
committerYang Tse <yangsita@gmail.com>
Tue, 10 Apr 2012 15:29:37 +0000 (17:29 +0200)
Undefine CURL_HIDDEN_SYMBOLS libcurl private preprocessor macro that might
leak from lib/setup.h into source files where this should not be defined.

tests/libtest/chkhostname.c
tests/libtest/sethostname.c
tests/libtest/test.h
tests/libtest/testutil.c
tests/libtest/testutil.h

index 58930467f8d21cc468a440b11ed143e9fbe33938..bf0dbfda2c199a72d7c9ae198ad70f0a503aad8d 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,6 +21,8 @@
  ***************************************************************************/
 #include "setup.h"
 
+#undef CURL_HIDDEN_SYMBOLS /* libcurl internal use only */
+
 #include "curl_gethostname.h"
 
 #define HOSTNAME_MAX 1024
index daf94f95cb1349417e35d1c312bf5b98c959dbd9..d5d5cf9e2e6bf85c5dbfeb46e42278e0fd3020b4 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
  * KIND, either express or implied.
  *
  ***************************************************************************/
-
 #include "setup.h"
 
+#undef CURL_HIDDEN_SYMBOLS /* libcurl internal use only */
+
 #include "sethostname.h"
 
 /*
index 861a571a5a24a0ae5bc72624e6637e215d41510d..119debd688103b2c7e8f43ec6d6e53799412adb7 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -29,6 +29,8 @@
 
 #include "setup.h"
 
+#undef CURL_HIDDEN_SYMBOLS /* libcurl internal use only */
+
 #include <curl/curl.h>
 #include <stdio.h>
 #include <string.h>
index 4ee488e71590593be9b2f9705b09bcb820eb9691..fc79e5c632064b95933eafc8f23ec817ef03f2d4 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
  * KIND, either express or implied.
  *
  ***************************************************************************/
-
 #include "setup.h"
 
+#undef CURL_HIDDEN_SYMBOLS /* libcurl internal use only */
+
 #include "testutil.h"
 #include "memdebug.h"
 
index 6a322e3cb779c3d04ae288eadb3af5b570d70bc0..455b5d53fab44f689d8dfa28afe566b6a4717e19 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __LIBTEST_TESTUTIL_H
-#define __LIBTEST_TESTUTIL_H
+#ifndef HEADER_CURL_LIBTEST_TESTUTIL_H
+#define HEADER_CURL_LIBTEST_TESTUTIL_H
 /***************************************************************************
  *                                  _   _ ____  _
  *  Project                     ___| | | |  _ \| |
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -21,9 +21,9 @@
  * KIND, either express or implied.
  *
  ***************************************************************************/
-
 #include "setup.h"
 
+#undef CURL_HIDDEN_SYMBOLS /* libcurl internal use only */
 
 struct timeval tutil_tvnow(void);
 
@@ -45,5 +45,5 @@ double tutil_tvdiff_secs(struct timeval t1, struct timeval t2);
 long tutil_tvlong(struct timeval t1);
 
 
-#endif  /* __LIBTEST_TESTUTIL_H */
+#endif  /* HEADER_CURL_LIBTEST_TESTUTIL_H */