[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 116/150: curl_ctype: fix macro redefinition warning
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 116/150: curl_ctype: fix macro redefinition warnings |
Date: |
Fri, 30 Mar 2018 16:49:30 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 68d84cfe984e7d0483fad14fdd7deef4bf67de1b
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Mar 3 19:52:43 2018 +0100
curl_ctype: fix macro redefinition warnings
On MinGW and Cygwin, GCC and clang have been complaining about macro
redefinitions since 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2. Fix this
by undefining the macros before redefining them as suggested in
https://github.com/curl/curl/pull/2269.
Suggested-by: Daniel Stenberg
---
lib/curl_ctype.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/curl_ctype.c b/lib/curl_ctype.c
index 70db1630d..4f5abc207 100644
--- a/lib/curl_ctype.c
+++ b/lib/curl_ctype.c
@@ -22,13 +22,21 @@
#include "curl_setup.h"
+#undef _U
#define _U (1<<0) /* upper case */
+#undef _L
#define _L (1<<1) /* lower case */
+#undef _N
#define _N (1<<2) /* decimal numerical digit */
+#undef _S
#define _S (1<<3) /* space */
+#undef _P
#define _P (1<<4) /* punctuation */
+#undef _C
#define _C (1<<5) /* control */
+#undef _X
#define _X (1<<6) /* hexadecimal letter */
+#undef _B
#define _B (1<<7) /* blank */
static const unsigned char ascii[128] = {
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 92/150: curl --version: show PSL if the run-time lib has it enabled, (continued)
- [GNUnet-SVN] [gnurl] 92/150: curl --version: show PSL if the run-time lib has it enabled, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 11/150: parsedate: fix date parsing for systems with 32 bit long, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 102/150: form.d: rephrased somewhat, added two example command lines, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 60/150: http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 62/150: sha256: build with OpenSSL < 0.9.8 too, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 72/150: curl_gssapi: make sure this file too uses our *printf(), gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 61/150: README: language fix, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 119/150: CURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 80/150: Revert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy", gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 98/150: RELEASE-NOTES: synced with 2427d94c6, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 116/150: curl_ctype: fix macro redefinition warnings,
gnunet <=
- [GNUnet-SVN] [gnurl] 104/150: winbuild: Use CALL to run batch scripts, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 130/150: hostip: fix compiler warning: 'variable set but not used', gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 144/150: checksrc.pl: add -i and -m options, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 143/150: curl-openssl.m4: fix spelling [ci skip], gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 133/150: docs/SECURITY.md -> docs/SECURITY-PROCESS.md, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 95/150: TODO: warning if curl version is not in sync with libcurl version, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 109/150: spelling fixes, gnunet, 2018/03/30
- [GNUnet-SVN] [gnurl] 150/150: Merge tag 'curl-7_59_0' of https://github.com/curl/curl, gnunet, 2018/03/30