mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-09-22 04:15:55 -04:00
Microsoft has '_' in front of random functions. We typedef this away.
svn path=/trunk/log/; revision=2192
This commit is contained in:
parent
7ba17e3285
commit
773b2c0915
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define mutex_t CRITICAL_SECTION
|
#define mutex_t CRITICAL_SECTION
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#define vsnprintf _vsnprintf
|
||||||
#else
|
#else
|
||||||
#define mutex_t pthread_mutex_t
|
#define mutex_t pthread_mutex_t
|
||||||
#endif
|
#endif
|
||||||
@ -84,7 +86,8 @@ int log_open(const char *filename)
|
|||||||
_release_log_id(log_id);
|
_release_log_id(log_id);
|
||||||
return LOG_ECANTOPEN;
|
return LOG_ECANTOPEN;
|
||||||
}
|
}
|
||||||
setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0);
|
|
||||||
|
setvbuf(loglist[log_id].logfile, NULL, _IOLBF, 0);
|
||||||
|
|
||||||
return log_id;
|
return log_id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user