2003-06-20 19:29:26 +00:00
|
|
|
#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"
|
2003-06-20 21:49:01 +00:00
|
|
|
# define VERSION "0.5.0"
|
2003-06-20 19:29:26 +00:00
|
|
|
|
|
|
|
# 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
|