]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy: remove #ifdefs to make code easier on the eye
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Jul 2023 16:23:52 +0000 (18:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Jul 2023 21:57:08 +0000 (23:57 +0200)
Closes #11525

lib/easy.c
lib/system_win32.h

index d034629b57a8fef0552011526b325c3b5a34f3da..42cdbe0a77e937841e993746adba203b2fba0ce4 100644 (file)
@@ -168,19 +168,15 @@ static CURLcode global_init(long flags, bool memoryfuncs)
     goto fail;
   }
 
-#ifdef WIN32
   if(Curl_win32_init(flags)) {
     DEBUGF(fprintf(stderr, "Error: win32_init failed\n"));
     goto fail;
   }
-#endif
 
-#ifdef __AMIGA__
   if(Curl_amiga_init()) {
     DEBUGF(fprintf(stderr, "Error: Curl_amiga_init failed\n"));
     goto fail;
   }
-#endif
 
   if(Curl_macos_init()) {
     DEBUGF(fprintf(stderr, "Error: Curl_macos_init failed\n"));
index 24899cb2d5fc9b5ab5d51ec2ef65ea4c3eaf5a6b..6482643fab9e5c8b9bd7388a4841f49d7528f0b2 100644 (file)
@@ -42,7 +42,8 @@ extern IF_NAMETOINDEX_FN Curl_if_nametoindex;
 
 /* This is used to dynamically load DLLs */
 HMODULE Curl_load_library(LPCTSTR filename);
-
-#endif /* WIN32 */
+#else  /* WIN32 */
+#define Curl_win32_init(x) CURLE_OK
+#endif /* !WIN32 */
 
 #endif /* HEADER_CURL_SYSTEM_WIN32_H */