d336d806704d3902c2b631053574626abab3adc1
   1#ifndef __MSVC__HEAD
   2#define __MSVC__HEAD
   3
   4#include <direct.h>
   5#include <process.h>
   6#include <malloc.h>
   7#include <io.h>
   8
   9/* porting function */
  10#define inline __inline
  11#define __inline__ __inline
  12#define __attribute__(x)
  13#define strcasecmp   _stricmp
  14#define strncasecmp  _strnicmp
  15#define ftruncate    _chsize
  16#define strtoull     _strtoui64
  17#define strtoll      _strtoi64
  18
  19#undef ERROR
  20
  21typedef int sigset_t;
  22/* open for reading, writing, or both (not in fcntl.h) */
  23#define O_ACCMODE     (_O_RDONLY | _O_WRONLY | _O_RDWR)
  24
  25#include "compat/mingw.h"
  26
  27#endif