Commit c25902fd authored by Ghislain MARY's avatar Ghislain MARY

Use _WIN32 defines instead of WIN32.

parent b7a15bb5
......@@ -24,7 +24,7 @@
#include "register_tester.h"
#ifndef WIN32
#ifndef _WIN32
#include <sys/types.h>
#include <inttypes.h>
#endif
......
......@@ -874,7 +874,7 @@ static void test_replaces_escaped_header(void) {
}
#ifndef WIN32
#ifndef _WIN32
static void _test_date_header(void){
belle_sip_header_date_t *date,*date2;
time_t utc;
......@@ -894,7 +894,7 @@ static void _test_date_header(void){
#endif
static void test_date_header(void){
#ifdef WIN32
#ifdef _WIN32
// TODO: setenv and unsetenv are not available for Windows
#else
char *tz;
......
......@@ -67,7 +67,7 @@ void belle_sip_tester_set_root_ca_path(const char *root_ca_path) {
static void log_handler(int lev, const char *fmt, va_list args) {
#ifdef WIN32
#ifdef _WIN32
/* We must use stdio to avoid log formatting (for autocompletion etc.) */
vfprintf(lev == BELLE_SIP_LOG_ERROR ? stderr : stdout, fmt, args);
fprintf(lev == BELLE_SIP_LOG_ERROR ? stderr : stdout, "\n");
......
......@@ -25,7 +25,7 @@
#include <string.h>
#include <math.h>
#ifdef WIN32
#ifdef _WIN32
#define snprintf _snprintf
#endif
......
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