]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
config: drop unused code and variables
authorViktor Szakats <commit@vsz.me>
Sun, 12 Jan 2025 10:57:24 +0000 (11:57 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 13 Jan 2025 01:44:40 +0000 (02:44 +0100)
- cmake, config-*: drop unused `PACKAGE*`, `VERSION` variables.
- config-win32: indentation
- config-win32ce: drop mingw-specific code.
  This header is not used with MinGW.
- config-win32ce: `_WIN64` is never true for Windows CE, drop.

Closes #15978

lib/config-os400.h
lib/config-plan9.h
lib/config-riscos.h
lib/config-win32.h
lib/config-win32ce.h
lib/curl_config.h.cmake

index 556e83765d8ecf89c005ee514d1cc5a18a508c9b..0bbbc514dd47f2434717b763ebd78d9d698fc6f0 100644 (file)
 
 #pragma enum(int)
 
-#undef PACKAGE
-
-/* Version number of this archive. */
-#undef VERSION
-
 /* Define cpu-machine-OS */
 #ifndef CURL_OS
 #define CURL_OS "OS/400"
 /* Define if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H
 
-/* Name of package */
-#undef PACKAGE
-
 /* The size of `int', as computed by sizeof. */
 #define SIZEOF_INT              4
 
index 699291a1eddb935e8f85f9c820e72232e8fc8c80..8763d1e9290957d3d4c422a13665f7c874ea963b 100644 (file)
 #ifndef CURL_OS
 #define CURL_OS "plan9"
 #endif
-#define PACKAGE "curl"
-#define PACKAGE_NAME "curl"
-#define PACKAGE_BUGREPORT "a suitable mailing list: https://curl.se/mail/"
-#define PACKAGE_STRING "curl -"
-#define PACKAGE_TARNAME "curl"
-#define PACKAGE_VERSION "-"
-#define VERSION "0.0.0" /* TODO */
 
 #define STDC_HEADERS 1
 
index 28c3bdfb06894261ffb2e680f773057de3d78e50..65ca53e222cd1770cb3105943d38c03eaa5d6e2d 100644 (file)
 /*               Hand crafted config file for RISC OS               */
 /* ================================================================ */
 
-/* Name of this package! */
-#undef PACKAGE
-
-/* Version number of this archive. */
-#undef VERSION
-
 /* Define cpu-machine-OS */
 #ifndef CURL_OS
 #define CURL_OS "ARM-RISC OS"
 /* Define if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H
 
-/* Name of package */
-#undef PACKAGE
-
 /* The size of `int', as computed by sizeof. */
 #define SIZEOF_INT 4
 
index e5066befa14c1a4ce9365936871d7e4b48df5b91..236182f87e5ca1f4eaa87204df3aba767d852d7b 100644 (file)
 /* VS2008 default target settings and minimum build target check. */
 #if defined(_MSC_VER) && (_MSC_VER >= 1500) && (_MSC_VER <= 1600)
 #  ifndef _WIN32_WINNT
-#    define _WIN32_WINNT VS2008_DEF_TARGET
+#  define _WIN32_WINNT VS2008_DEF_TARGET
 #  endif
 #  ifndef WINVER
-#    define WINVER VS2008_DEF_TARGET
+#  define WINVER VS2008_DEF_TARGET
 #  endif
 #  if (_WIN32_WINNT < VS2008_MIN_TARGET) || (WINVER < VS2008_MIN_TARGET)
 #    error VS2008 does not support Windows build targets prior to Windows 2000
 /* VS2012 default target settings and minimum build target check. */
 #if defined(_MSC_VER) && (_MSC_VER >= 1700)
 #  ifndef _WIN32_WINNT
-#    define _WIN32_WINNT VS2012_DEF_TARGET
+#  define _WIN32_WINNT VS2012_DEF_TARGET
 #  endif
 #  ifndef WINVER
-#    define WINVER VS2012_DEF_TARGET
+#  define WINVER VS2012_DEF_TARGET
 #  endif
 #  if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
 #    if defined(_USING_V110_SDK71_)
@@ -473,9 +473,6 @@ Vista
 #endif
 #endif
 
-/* Name of package */
-#define PACKAGE "curl"
-
 /* If you want to build curl with the built-in manual */
 #define USE_MANUAL 1
 
index b01c2187f2e0ea8a4e59f160273b9d387bd89a54..6012ceb511b2b67b1fd08d96c7c460c32089f7dd 100644 (file)
@@ -78,9 +78,7 @@
 /* #define HAVE_TERMIOS_H 1 */
 
 /* Define if you have the <unistd.h> header file. */
-#if defined(__MINGW32__)
-#define HAVE_UNISTD_H 1
-#endif
+/* #define HAVE_UNISTD_H 1 */
 
 /* ---------------------------------------------------------------- */
 /*                        OTHER HEADER INFO                         */
 /* #define HAVE_STRDUP 1 */
 
 /* Define if you have the strtoll function. */
-#if defined(__MINGW32__)
-#define HAVE_STRTOLL 1
-#endif
+/* #define HAVE_STRTOLL 1 */
 
 /* Define if you have the utime function. */
 #define HAVE_UTIME 1
 #define in_addr_t unsigned long
 
 /* Define if ssize_t is not an available 'typedefed' type. */
-#if defined(_WIN64)
-#define ssize_t __int64
-#else
 #define ssize_t int
-#endif
 
 /* ---------------------------------------------------------------- */
 /*                            TYPE SIZES                            */
 #define SIZEOF_LONG 4
 
 /* Define to the size of `size_t', as computed by sizeof. */
-#if defined(_WIN64)
-#  define SIZEOF_SIZE_T 8
-#else
-#  define SIZEOF_SIZE_T 4
-#endif
+#define SIZEOF_SIZE_T 4
 
 /* ---------------------------------------------------------------- */
 /*                          STRUCT RELATED                          */
 #define CURL_OS "i386-pc-win32ce"
 #endif
 
-/* Name of package */
-#define PACKAGE "curl"
-
 /* ---------------------------------------------------------------- */
 /*                            Windows CE                            */
 /* ---------------------------------------------------------------- */
index 778e0733704eb1c15e909c5364352e7949e52cb8..b631878ea2bdb31fbba4d37e2ed937292734bd11 100644 (file)
 /* cpu-machine-OS */
 #cmakedefine CURL_OS ${CURL_OS}
 
-/* Name of package */
-#cmakedefine PACKAGE ${PACKAGE}
-
-/* Define to the address where bug reports for this package should be sent. */
-#cmakedefine PACKAGE_BUGREPORT ${PACKAGE_BUGREPORT}
-
-/* Define to the full name of this package. */
-#cmakedefine PACKAGE_NAME ${PACKAGE_NAME}
-
-/* Define to the full name and version of this package. */
-#cmakedefine PACKAGE_STRING ${PACKAGE_STRING}
-
-/* Define to the one symbol short name of this package. */
-#cmakedefine PACKAGE_TARNAME ${PACKAGE_TARNAME}
-
-/* Define to the version of this package. */
-#cmakedefine PACKAGE_VERSION ${PACKAGE_VERSION}
-
 /*
  Note: SIZEOF_* variables are fetched with CMake through check_type_size().
  As per CMake documentation on CheckTypeSize, C preprocessor code is
@@ -797,9 +779,6 @@ ${SIZEOF_TIME_T_CODE}
 /* enable multiple SSL backends */
 #cmakedefine CURL_WITH_MULTI_SSL 1
 
-/* Version number of package */
-#cmakedefine VERSION ${VERSION}
-
 /* Number of bits in a file offset, on hosts where this is settable. */
 #cmakedefine _FILE_OFFSET_BITS ${_FILE_OFFSET_BITS}