1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/src/syslinux/sltypes.h

26 lines
574 B
C
Raw Normal View History

#ifndef _MSC_VER
#error This header should only be used with Microsoft compilers
#endif
/* The addons below are not part of inttypes but required for syslinux */
#ifndef _SLTYPES_H_
#define _SLTYPES_H_
/* On MS environments, the inline keyword is available in C++ only */
#ifndef inline
#define inline __inline
#endif
/* ssize_t is also not available (copy/paste from MinGW) */
#ifndef _SSIZE_T_DEFINED
#define _SSIZE_T_DEFINED
#undef ssize_t
#ifdef _WIN64
typedef __int64 ssize_t;
#else
typedef int ssize_t;
#endif /* _WIN64 */
#endif /* _SSIZE_T_DEFINED */
#endif