*: check defined(_WIN32) instead of defined(WIN32)
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
/* damn you, windows.h! */
|
||||
#ifdef ERROR
|
||||
|
||||
@@ -227,7 +227,7 @@ CurlInputStream::OnHeaders(unsigned status,
|
||||
|
||||
if (i != headers.end()) {
|
||||
size_t icy_metaint = ParseUint64(i->second.c_str());
|
||||
#ifndef WIN32
|
||||
#ifndef _WIN32
|
||||
/* Windows doesn't know "%z" */
|
||||
FormatDebug(curl_domain, "icy-metaint=%zu", icy_metaint);
|
||||
#endif
|
||||
@@ -414,7 +414,7 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||
|
||||
if (offset > 0) {
|
||||
char range[32];
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
// TODO: what can we use on Windows to format 64 bit?
|
||||
sprintf(range, "%lu-", (long)offset);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user