win32: use _WIN32 not WIN32

parent e07d560e
......@@ -84,7 +84,7 @@
# endif
#endif
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
#if defined(_WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__)
#ifdef BELLESIP_INTERNAL_EXPORTS
#define BELLESIP_INTERNAL_EXPORT __declspec(dllexport)
#else
......
......@@ -39,8 +39,6 @@ set(TESTER_SOURCES
register_tester.h
)
add_definitions(-DBC_CONFIG_FILE="config.h")
string(REPLACE ";" " " LINK_FLAGS_STR "${LINK_FLAGS}")
apply_compile_flags(TESTER_SOURCES "CPP" "C")
......
......@@ -189,7 +189,7 @@ int main (int argc, char *argv[]) {
belle_sip_tester_init(NULL);
#ifndef WIN32 /*this hack doesn't work for argv[0]="c:\blablab\"*/
#ifndef _WIN32 /*this hack doesn't work for argv[0]="c:\blablab\"*/
// this allows to launch liblinphone_tester from outside of tester directory
if (strstr(argv[0], ".libs")) {
int prefix_length = strstr(argv[0], ".libs") - argv[0] + 1;
......
......@@ -22,7 +22,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if WIN32
#ifdef _WIN32
#define strcasecmp _stricmp
#else
#include <unistd.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment