mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
39 lines
726 B
C
39 lines
726 B
C
#ifndef __OS_H
|
|
#define __OS_H
|
|
|
|
#if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
|
|
# define SYS_WINDOWS
|
|
# if defined __MINGW32__
|
|
# define COMP_MINGW
|
|
# elif defined __CYGWIN__
|
|
# define COMP_CYGWIN
|
|
# else
|
|
# define COMP_MSC
|
|
# endif
|
|
#else
|
|
# define COMP_GCC
|
|
# define SYS_UNIX
|
|
# if defined(__bsdi__) || defined(__FreeBSD__)
|
|
# define SYS_BSD
|
|
# else
|
|
# define SYS_LINUX
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(COMP_MSC)
|
|
# define PACKAGE "mkvtoolnix"
|
|
# define VERSION "0.5.0"
|
|
|
|
# define strncasecmp _strnicmp
|
|
# define strcasecmp _stricmp
|
|
# define nice(a)
|
|
# define vsnprintf _vsnprintf
|
|
# define vfprintf _vfprintf
|
|
#endif // COMP_MSC
|
|
|
|
#if !defined(COMP_CYGWIN)
|
|
#include <stdint.h>
|
|
#endif // !COMP_CYGWIN
|
|
|
|
#endif
|