'#define HAVE_ZSTD_H 1' => 1,
'#define LT_OBJDIR ".libs/"' => 1,
'#define NEED_LBER_H 1' => 1,
- '#define OS "Linux"' => 1,
- '#define OS "x86_64-pc-linux-gnu"' => 1,
+ '#define CURL_OS "Linux"' => 1,
+ '#define CURL_OS "x86_64-pc-linux-gnu"' => 1,
'#define PACKAGE "curl"' => 1,
'#define PACKAGE_BUGREPORT "a suitable curl mailing list: https://curl.se/mail/"' => 1,
'#define PACKAGE_NAME "curl"' => 1,
endif()
if(CMAKE_C_COMPILER_TARGET)
- set(OS "\"${CMAKE_C_COMPILER_TARGET}\"")
+ set(CURL_OS "\"${CMAKE_C_COMPILER_TARGET}\"")
else()
- set(OS "\"${CMAKE_SYSTEM_NAME}\"")
+ set(CURL_OS "\"${CMAKE_SYSTEM_NAME}\"")
endif()
include_directories("${PROJECT_SOURCE_DIR}/include")
AC_CANONICAL_HOST
dnl Get system canonical name
-AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
+AC_DEFINE_UNQUOTED(CURL_OS, "${host}", [cpu-machine-OS])
# Silence warning: ar: 'u' modifier ignored since 'D' is the default
AC_SUBST(AR_FLAGS, [cr])
#define USE_MANUAL 1
#define CURL_DISABLE_LDAP 1
-#ifndef OS
-#define OS "AmigaOS"
+#ifndef CURL_OS
+#define CURL_OS "AmigaOS"
#endif
#define PACKAGE "curl"
/* lib/config-dos.h - Hand crafted config file for DOS */
/* ================================================================ */
-#ifndef OS
+#ifndef CURL_OS
#if defined(DJGPP)
- #define OS "MSDOS/djgpp"
+ #define CURL_OS "MSDOS/djgpp"
#elif defined(__HIGHC__)
- #define OS "MSDOS/HighC"
+ #define CURL_OS "MSDOS/HighC"
#else
- #define OS "MSDOS/?"
+ #define CURL_OS "MSDOS/?"
#endif
#endif
/* On macOS you must run configure to generate curl_config.h file */
/* =================================================================== */
-#ifndef OS
-#define OS "mac"
+#ifndef CURL_OS
+#define CURL_OS "mac"
#endif
#include <ConditionalMacros.h>
#undef VERSION
/* Define cpu-machine-OS */
-#ifndef OS
-#define OS "OS/400"
+#ifndef CURL_OS
+#define CURL_OS "OS/400"
#endif
/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
#define CURL_DISABLE_LDAP 1
#define NEED_REENTRANT 1
-#ifndef OS
-#define OS "plan9"
+#ifndef CURL_OS
+#define CURL_OS "plan9"
#endif
#define PACKAGE "curl"
#define PACKAGE_NAME "curl"
#undef VERSION
/* Define cpu-machine-OS */
-#ifndef OS
-#define OS "ARM-RISC OS"
+#ifndef CURL_OS
+#define CURL_OS "ARM-RISC OS"
#endif
/* Define if you want the built-in manual */
/* ---------------------------------------------------------------- */
/* Define cpu-machine-OS */
-#ifndef OS
+#ifndef CURL_OS
#if defined(_M_IX86) || defined(__i386__) /* x86 (MSVC or gcc) */
-#define OS "i386-pc-win32"
+#define CURL_OS "i386-pc-win32"
#elif defined(_M_X64) || defined(__x86_64__) /* x86_64 (MSVC >=2005 or gcc) */
-#define OS "x86_64-pc-win32"
+#define CURL_OS "x86_64-pc-win32"
#elif defined(_M_IA64) || defined(__ia64__) /* Itanium */
-#define OS "ia64-pc-win32"
+#define CURL_OS "ia64-pc-win32"
#elif defined(_M_ARM_NT) || defined(__arm__) /* ARMv7-Thumb2 (Windows RT) */
-#define OS "thumbv7a-pc-win32"
+#define CURL_OS "thumbv7a-pc-win32"
#elif defined(_M_ARM64) || defined(__aarch64__) /* ARM64 (Windows 10) */
-#define OS "aarch64-pc-win32"
+#define CURL_OS "aarch64-pc-win32"
#else
-#define OS "unknown-pc-win32"
+#define CURL_OS "unknown-pc-win32"
#endif
#endif
/* ---------------------------------------------------------------- */
/* Define cpu-machine-OS */
-#ifndef OS
-#define OS "i386-pc-win32ce"
+#ifndef CURL_OS
+#define CURL_OS "i386-pc-win32ce"
#endif
/* Name of package */
#cmakedefine NEED_REENTRANT 1
/* cpu-machine-OS */
-#cmakedefine OS ${OS}
+#cmakedefine CURL_OS ${CURL_OS}
/* Name of package */
#cmakedefine PACKAGE ${PACKAGE}
const size_t byte_count = sizeof(lm) + sizeof(nt) +
strlen(smbc->user) + strlen(smbc->domain) +
- strlen(OS) + strlen(CLIENTNAME) + 4; /* 4 null chars */
+ strlen(CURL_OS) + strlen(CLIENTNAME) + 4; /* 4 null chars */
if(byte_count > sizeof(msg.bytes))
return CURLE_FILESIZE_EXCEEDED;
"%s%c" /* domain */
"%s%c" /* OS */
"%s", /* client name */
- smbc->user, 0, smbc->domain, 0, OS, 0, CLIENTNAME);
+ smbc->user, 0, smbc->domain, 0, CURL_OS, 0, CLIENTNAME);
p++; /* count the final null termination */
DEBUGASSERT(byte_count == (size_t)(p - msg.bytes));
msg.byte_count = smb_swap16((unsigned short)byte_count);
CURLVERSION_NOW,
LIBCURL_VERSION,
LIBCURL_VERSION_NUM,
- OS, /* as found by configure or set by hand at build-time */
+ CURL_OS, /* as found by configure or set by hand at build-time */
0, /* features bitmask is built at runtime */
NULL, /* ssl_version */
0, /* ssl_version_num, this is kept at zero */
$! may put DEC or COMPAQ or HP for the middle part.
$!
$write cvh "#if defined(__alpha)"
-$write cvh "#define OS ""ALPHA-HP-VMS"""
+$write cvh "#define CURL_OS ""ALPHA-HP-VMS"""
$write cvh "#elif defined(__vax)"
-$write cvh "#define OS ""VAX-HP-VMS"""
+$write cvh "#define CURL_OS ""VAX-HP-VMS"""
$write cvh "#elif defined(__ia64)"
-$write cvh "#define OS ""IA64-HP-VMS""
+$write cvh "#define CURL_OS ""IA64-HP-VMS""
$write cvh "#else"
-$write cvh "#define OS ""UNKNOWN-HP-VMS""
+$write cvh "#define CURL_OS ""UNKNOWN-HP-VMS""
$write cvh "#endif"
$write cvh ""
$!
# define main(x,y) curl_main(x,y)
#endif
-#ifndef OS
-# define OS "unknown"
+#ifndef CURL_OS
+# define CURL_OS "unknown"
#endif
#ifndef UNPRINTABLE_CHAR
#define CURL_VERSION_MAJOR LIBCURL_VERSION_MAJOR
#define CURL_VERSION_MINOR LIBCURL_VERSION_MINOR
#define CURL_VERSION_PATCH LIBCURL_VERSION_PATCH
-#define CURL_ID CURL_NAME " " CURL_VERSION " (" OS ") "
+#define CURL_ID CURL_NAME " " CURL_VERSION " (" CURL_OS ") "
#endif /* HEADER_CURL_TOOL_VERSION_H */
if(-f $configfile && -s $configfile && open(my $libconfigh, "<", "$configfile")) {
while(<$libconfigh>) {
- if($_ =~ /^\#define\s+OS\s+"*([^"][^"]*)"*\s*/) {
+ if($_ =~ /^\#define\s+CURL_OS\s+"*([^"][^"]*)"*\s*/) {
$triplet = $1;
last;
}
enum system machine;
#ifdef HAVE_FNMATCH
- if(strstr(OS, "apple") || strstr(OS, "darwin")) {
+ if(strstr(CURL_OS, "apple") || strstr(CURL_OS, "darwin")) {
machine = SYSTEM_MACOS;
}
else