]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: drop redundant `#ifdef` before `#undef`
authorViktor Szakats <commit@vsz.me>
Tue, 8 Jul 2025 12:15:45 +0000 (14:15 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 12 Jul 2025 06:59:44 +0000 (08:59 +0200)
Closes #17899

lib/curl_setup.h
lib/setup-vms.h

index 00e79414cb8ba4ac31bde5c41ecee5403443ccc7..4dc46f7a73ab1f87c59d1fb767122af5dab49dd1 100644 (file)
 #    define select(n,r,w,x,t) select_s(n,r,w,x,t)
 #    define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
 #    include <tcp.h>
-#    ifdef word
-#      undef word
-#    endif
-#    ifdef byte
-#      undef byte
-#    endif
+#    undef word
+#    undef byte
 
 #  endif /* MSDOS */
 
index d74f4ad6305a69f37164f095759b435365b7832e..0fd5e542b775075f3fef2c7e64ad716dba3e8819 100644 (file)
@@ -374,11 +374,9 @@ static struct passwd *vms_getpwuid(uid_t uid)
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #ifndef AI_NUMERICHOST
-#ifdef USE_IPV6
 #undef USE_IPV6
 #endif
 #endif
-#endif
 
 /* VAX symbols are always in uppercase */
 #ifdef __VAX