summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-09-03 16:49:42 +0200
committerSimon Josefsson <simon@josefsson.org>2008-09-03 16:49:42 +0200
commit2ac6ef7894990869f8ed951cf3cc7a15ede00f66 (patch)
tree153c13ad40248103827fda8d89cf01ca6b822681
parent0b55b360dd690023f3591eaff4a72713b7a6d8d3 (diff)
downloadgnutls-2ac6ef7894990869f8ed951cf3cc7a15ede00f66.tar.gz
Use #ifdef for checking HAVE_CONFIG_H for consistency.
-rw-r--r--doc/examples/ex-alert.c2
-rw-r--r--doc/examples/ex-cert-select.c2
-rw-r--r--doc/examples/ex-client-psk.c2
-rw-r--r--doc/examples/ex-client-resume.c2
-rw-r--r--doc/examples/ex-client-srp.c2
-rw-r--r--doc/examples/ex-client-tlsia.c2
-rw-r--r--doc/examples/ex-client1.c2
-rw-r--r--doc/examples/ex-client2.c2
-rw-r--r--doc/examples/ex-crq.c2
-rw-r--r--doc/examples/ex-cxx.cpp2
-rw-r--r--doc/examples/ex-pkcs12.c2
-rw-r--r--doc/examples/ex-rfc2818.c2
-rw-r--r--doc/examples/ex-serv-anon.c2
-rw-r--r--doc/examples/ex-serv-export.c2
-rw-r--r--doc/examples/ex-serv-pgp.c2
-rw-r--r--doc/examples/ex-serv-psk.c2
-rw-r--r--doc/examples/ex-serv-srp.c2
-rw-r--r--doc/examples/ex-serv1.c2
-rw-r--r--doc/examples/ex-session-info.c2
-rw-r--r--doc/examples/ex-verify.c2
-rw-r--r--doc/examples/ex-x509-info.c2
-rw-r--r--doc/examples/tcp.c2
-rw-r--r--lib/defines.h2
-rw-r--r--lib/gnutls_asn1_tab.c2
-rw-r--r--lib/openpgp/openpgp_int.h2
-rw-r--r--lib/pkix_asn1_tab.c2
-rw-r--r--src/errcodes.c2
-rw-r--r--tests/anonself.c2
-rw-r--r--tests/certificate_set_x509_crl.c2
-rw-r--r--tests/dhepskself.c2
-rw-r--r--tests/finished.c2
-rw-r--r--tests/hostname-check/hostname-check.c2
-rw-r--r--tests/mini.c2
-rw-r--r--tests/moredn.c2
-rw-r--r--tests/netconf-psk.c2
-rw-r--r--tests/openpgpself.c2
-rw-r--r--tests/oprfi.c2
-rw-r--r--tests/pgps2kgnu.c2
-rw-r--r--tests/pskself.c2
-rw-r--r--tests/resume.c2
-rw-r--r--tests/tlsia.c2
-rw-r--r--tests/x509dn.c2
-rw-r--r--tests/x509self.c2
-rw-r--r--tests/x509signself.c2
44 files changed, 44 insertions, 44 deletions
diff --git a/doc/examples/ex-alert.c b/doc/examples/ex-alert.c
index 5869dcaae2..7f5829925c 100644
--- a/doc/examples/ex-alert.c
+++ b/doc/examples/ex-alert.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-cert-select.c b/doc/examples/ex-cert-select.c
index 60c2881379..09b3324637 100644
--- a/doc/examples/ex-cert-select.c
+++ b/doc/examples/ex-cert-select.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client-psk.c b/doc/examples/ex-client-psk.c
index 7ee2b01435..dc1b0f6a12 100644
--- a/doc/examples/ex-client-psk.c
+++ b/doc/examples/ex-client-psk.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client-resume.c b/doc/examples/ex-client-resume.c
index 99679453e0..473fddf6aa 100644
--- a/doc/examples/ex-client-resume.c
+++ b/doc/examples/ex-client-resume.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client-srp.c b/doc/examples/ex-client-srp.c
index 87dd251bec..d5efc187d0 100644
--- a/doc/examples/ex-client-srp.c
+++ b/doc/examples/ex-client-srp.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client-tlsia.c b/doc/examples/ex-client-tlsia.c
index a34f88958b..17e344aec6 100644
--- a/doc/examples/ex-client-tlsia.c
+++ b/doc/examples/ex-client-tlsia.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client1.c b/doc/examples/ex-client1.c
index 3f0ca13194..0b8216bdac 100644
--- a/doc/examples/ex-client1.c
+++ b/doc/examples/ex-client1.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-client2.c b/doc/examples/ex-client2.c
index f70e826a93..33cf129d1e 100644
--- a/doc/examples/ex-client2.c
+++ b/doc/examples/ex-client2.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-crq.c b/doc/examples/ex-crq.c
index d2fc9250eb..0b2bfce86f 100644
--- a/doc/examples/ex-crq.c
+++ b/doc/examples/ex-crq.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-cxx.cpp b/doc/examples/ex-cxx.cpp
index 1bade542fe..ac3d3052be 100644
--- a/doc/examples/ex-cxx.cpp
+++ b/doc/examples/ex-cxx.cpp
@@ -1,4 +1,4 @@
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#else
#endif
diff --git a/doc/examples/ex-pkcs12.c b/doc/examples/ex-pkcs12.c
index 7c094bf651..b017c85a45 100644
--- a/doc/examples/ex-pkcs12.c
+++ b/doc/examples/ex-pkcs12.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-rfc2818.c b/doc/examples/ex-rfc2818.c
index dcb03ac320..49fd7b608d 100644
--- a/doc/examples/ex-rfc2818.c
+++ b/doc/examples/ex-rfc2818.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv-anon.c b/doc/examples/ex-serv-anon.c
index b6c0aa3f55..3ccb0135e3 100644
--- a/doc/examples/ex-serv-anon.c
+++ b/doc/examples/ex-serv-anon.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv-export.c b/doc/examples/ex-serv-export.c
index 0f7383f760..0cf11f322a 100644
--- a/doc/examples/ex-serv-export.c
+++ b/doc/examples/ex-serv-export.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv-pgp.c b/doc/examples/ex-serv-pgp.c
index beb1582965..201068d77d 100644
--- a/doc/examples/ex-serv-pgp.c
+++ b/doc/examples/ex-serv-pgp.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv-psk.c b/doc/examples/ex-serv-psk.c
index 0a1b83c86f..0e93569cf3 100644
--- a/doc/examples/ex-serv-psk.c
+++ b/doc/examples/ex-serv-psk.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv-srp.c b/doc/examples/ex-serv-srp.c
index 38bf219b44..67a68dfca5 100644
--- a/doc/examples/ex-serv-srp.c
+++ b/doc/examples/ex-serv-srp.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-serv1.c b/doc/examples/ex-serv1.c
index c947c6a296..9eee252474 100644
--- a/doc/examples/ex-serv1.c
+++ b/doc/examples/ex-serv1.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-session-info.c b/doc/examples/ex-session-info.c
index 382b038185..6f1d07abaa 100644
--- a/doc/examples/ex-session-info.c
+++ b/doc/examples/ex-session-info.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-verify.c b/doc/examples/ex-verify.c
index c581458757..e9337213bc 100644
--- a/doc/examples/ex-verify.c
+++ b/doc/examples/ex-verify.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/ex-x509-info.c b/doc/examples/ex-x509-info.c
index 5ffee181e2..d1433ab559 100644
--- a/doc/examples/ex-x509-info.c
+++ b/doc/examples/ex-x509-info.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/doc/examples/tcp.c b/doc/examples/tcp.c
index 1a46d9de9a..ec390e623e 100644
--- a/doc/examples/tcp.c
+++ b/doc/examples/tcp.c
@@ -5,7 +5,7 @@
* notice and this notice are preserved.
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/lib/defines.h b/lib/defines.h
index 3cb6fb280d..424e7c1e48 100644
--- a/lib/defines.h
+++ b/lib/defines.h
@@ -25,7 +25,7 @@
#ifndef DEFINES_H
# define DEFINES_H
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/lib/gnutls_asn1_tab.c b/lib/gnutls_asn1_tab.c
index ecac746e5d..b19f41790b 100644
--- a/lib/gnutls_asn1_tab.c
+++ b/lib/gnutls_asn1_tab.c
@@ -1,4 +1,4 @@
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff --git a/lib/openpgp/openpgp_int.h b/lib/openpgp/openpgp_int.h
index cb95b8da2d..96b2a7889f 100644
--- a/lib/openpgp/openpgp_int.h
+++ b/lib/openpgp/openpgp_int.h
@@ -1,7 +1,7 @@
#ifndef OPENPGP_LOCAL_H
# define OPENPGP_LOCAL_H
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/lib/pkix_asn1_tab.c b/lib/pkix_asn1_tab.c
index acb39e03ba..4edade6d43 100644
--- a/lib/pkix_asn1_tab.c
+++ b/lib/pkix_asn1_tab.c
@@ -1,4 +1,4 @@
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
diff --git a/src/errcodes.c b/src/errcodes.c
index 4109c79cc4..e061e48f9f 100644
--- a/src/errcodes.c
+++ b/src/errcodes.c
@@ -1,4 +1,4 @@
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/tests/anonself.c b/tests/anonself.c
index 1341a48458..d2286bdb2a 100644
--- a/tests/anonself.c
+++ b/tests/anonself.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/certificate_set_x509_crl.c b/tests/certificate_set_x509_crl.c
index fe94e54008..8dd4a75466 100644
--- a/tests/certificate_set_x509_crl.c
+++ b/tests/certificate_set_x509_crl.c
@@ -20,7 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/dhepskself.c b/tests/dhepskself.c
index 60abc220fc..f0bf5d9d54 100644
--- a/tests/dhepskself.c
+++ b/tests/dhepskself.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/finished.c b/tests/finished.c
index 88c84cbd29..1f5cdbd4f6 100644
--- a/tests/finished.c
+++ b/tests/finished.c
@@ -22,7 +22,7 @@
/* Based on mini.c. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/hostname-check/hostname-check.c b/tests/hostname-check/hostname-check.c
index 22c7987cdf..183ee1a283 100644
--- a/tests/hostname-check/hostname-check.c
+++ b/tests/hostname-check/hostname-check.c
@@ -20,7 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/mini.c b/tests/mini.c
index 2d64fb3c62..edda9f96b6 100644
--- a/tests/mini.c
+++ b/tests/mini.c
@@ -20,7 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/moredn.c b/tests/moredn.c
index 630db7ca5e..ed7935d0b2 100644
--- a/tests/moredn.c
+++ b/tests/moredn.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/netconf-psk.c b/tests/netconf-psk.c
index 4b57b28b64..ca6459de4e 100644
--- a/tests/netconf-psk.c
+++ b/tests/netconf-psk.c
@@ -20,7 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/openpgpself.c b/tests/openpgpself.c
index 246bdbeb7e..c007062da3 100644
--- a/tests/openpgpself.c
+++ b/tests/openpgpself.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/oprfi.c b/tests/oprfi.c
index 883530a777..594160b03a 100644
--- a/tests/oprfi.c
+++ b/tests/oprfi.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/pgps2kgnu.c b/tests/pgps2kgnu.c
index 6c9315dfa9..739b5ba821 100644
--- a/tests/pgps2kgnu.c
+++ b/tests/pgps2kgnu.c
@@ -25,7 +25,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/pskself.c b/tests/pskself.c
index 8b4fd70fef..107b4e4324 100644
--- a/tests/pskself.c
+++ b/tests/pskself.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/resume.c b/tests/resume.c
index e36f9c0167..f942d2a783 100644
--- a/tests/resume.c
+++ b/tests/resume.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/tlsia.c b/tests/tlsia.c
index 27c98ce77a..80e82be311 100644
--- a/tests/tlsia.c
+++ b/tests/tlsia.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/x509dn.c b/tests/x509dn.c
index 91e1949bfe..7fe5e5e517 100644
--- a/tests/x509dn.c
+++ b/tests/x509dn.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/x509self.c b/tests/x509self.c
index f3c97d6aa4..d00663d092 100644
--- a/tests/x509self.c
+++ b/tests/x509self.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
diff --git a/tests/x509signself.c b/tests/x509signself.c
index 10088e2240..7920cc6f00 100644
--- a/tests/x509signself.c
+++ b/tests/x509signself.c
@@ -22,7 +22,7 @@
/* Parts copied from GnuTLS example programs. */
-#if HAVE_CONFIG_H
+#ifdef HAVE_CONFIG_H
# include <config.h>
#endif