mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 18:24:13 +00:00
Assuming, just because it is MSVC, that the standard integers are not defined, is not correct. Need to test for define _STDINT as well as later versions of MSVC (>= VS2010) do have stdint.h
This commit is contained in:
1 parent
9d2aa0cd4c
commit
cf0f483aab
8 files changed
+11
-27
No files matched your search
@@ -49,31 +49,7 @@
|
||||
#undef strcasecmp
|
||||
#undef strncasecmp
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
/*The following insanity is because libteletone_generate.h defines int8_t in
|
||||
a slightly different manner to most other cases (SDL, PCAP, Java V8,
|
||||
VS2010's own stdint.h, etc) and does not provide a mechanism to prevent it's
|
||||
inclusion. Then, to cap it off, MSVC barfs on the difference.
|
||||
|
||||
Sigh.
|
||||
*/
|
||||
#pragma include_alias(<libteletone.h>, <../../libs/libteletone/src/libteletone.h>)
|
||||
#pragma include_alias(<libteletone_generate.h>, <../../libs/libteletone/src/libteletone_generate.h>)
|
||||
#pragma include_alias(<libteletone_detect.h>, <../../libs/libteletone/src/libteletone_detect.h>)
|
||||
#define int8_t signed int8_t
|
||||
#include <libteletone_generate.h>
|
||||
#undef int8_t
|
||||
#endif // End of insanity
|
||||
|
||||
|
||||
#define HAVE_APR
|
||||
#define uint32_t uint32_t // Avoid conflict in stdint definitions
|
||||
#include <switch.h>
|
||||
#undef uint32_t
|
||||
|
||||
#include <switch_version.h>
|
||||
|
||||
|
||||
#define MODNAME "mod_opal"
|
||||
|
||||
|
||||
Reference in new issue
Block a user