diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lilv_internal.h | 2 | ||||
-rw-r--r-- | src/util.c | 4 | ||||
-rw-r--r-- | src/zix/common.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h index 856b8fb..e4d1a3f 100644 --- a/src/lilv_internal.h +++ b/src/lilv_internal.h @@ -26,7 +26,7 @@ extern "C" { #include <stdint.h> #include <stdlib.h> -#ifdef __WIN32__ +#ifdef _WIN32 # include <windows.h> # define dlopen(path, flags) LoadLibrary(path) # define dlclose(lib) FreeLibrary(lib) @@ -144,7 +144,7 @@ lilv_expand(const char* path) ret = lilv_strdup(path); } wordfree(&p); -#elif defined(__WIN32__) +#elif defined(_WIN32) static const size_t len = 32767; char* ret = malloc(len); ExpandEnvironmentStrings(path, ret, len); @@ -247,7 +247,7 @@ lilv_path_is_absolute(const char* path) return true; } -#ifdef __WIN32__ +#ifdef _WIN32 if (isalpha(path[0]) && path[1] == ':' && lilv_is_dir_sep(path[2])) { return true; } diff --git a/src/zix/common.h b/src/zix/common.h index c0dffeb..59a9511 100644 --- a/src/zix/common.h +++ b/src/zix/common.h @@ -26,7 +26,7 @@ /** @cond */ #ifdef ZIX_SHARED -# ifdef __WIN32__ +# ifdef _WIN32 # define ZIX_LIB_IMPORT __declspec(dllimport) # define ZIX_LIB_EXPORT __declspec(dllexport) # else |