#include <winsock2.h>
#include <windows.h>
typedef SOCKET esl_socket_t;
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int64 uint64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef __int16 int16_t;
typedef __int8 int8_t;
+#endif
typedef intptr_t esl_ssize_t;
typedef int esl_filehandle_t;
#define ESL_SOCK_INVALID INVALID_SOCKET
#ifdef _MSC_VER
-#ifndef uint32_t
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#define __inline__ __inline
#endif
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int64 uint64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef __int16 int16_t;
typedef __int8 int8_t;
+#endif
#else
#include <stdint.h>
#endif
#endif
#ifdef _MSC_VER
-#ifndef uint32_t
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#ifndef __inline__
#define __inline__ __inline
#endif
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int16 uint16_t;
#endif
+#endif
#if defined(__i386__)
/*! \brief Find the bit position of the highest set bit in a word
#ifndef __inline__
#define __inline__ __inline
#endif
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int16 uint16_t;
#endif
+#endif
#if defined(__i386__)
/*! \brief Find the bit position of the highest set bit in a word
#endif
#undef inline
#define inline __inline
-#ifndef uint32_t
+#if !defined(_STDINT) && !defined(uint32_t)
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#undef strcasecmp\r
#undef strncasecmp\r
\r
-\r
-#ifdef _MSC_VER\r
-/*The following insanity is because libteletone_generate.h defines int8_t in\r
- a slightly different manner to most other cases (SDL, PCAP, Java V8,\r
- VS2010's own stdint.h, etc) and does not provide a mechanism to prevent it's\r
- inclusion. Then, to cap it off, MSVC barfs on the difference.\r
-\r
- Sigh.\r
- */\r
-#pragma include_alias(<libteletone.h>, <../../libs/libteletone/src/libteletone.h>)\r
-#pragma include_alias(<libteletone_generate.h>, <../../libs/libteletone/src/libteletone_generate.h>)\r
-#pragma include_alias(<libteletone_detect.h>, <../../libs/libteletone/src/libteletone_detect.h>)\r
-#define int8_t signed int8_t\r
-#include <libteletone_generate.h>\r
-#undef int8_t\r
-#endif // End of insanity\r
-\r
-\r
-#define HAVE_APR\r
-#define uint32_t uint32_t // Avoid conflict in stdint definitions\r
#include <switch.h>\r
-#undef uint32_t\r
-\r
-#include <switch_version.h>\r
-\r
\r
#define MODNAME "mod_opal"\r
\r