summaryrefslogtreecommitdiff
path: root/third_party/g7221/common/stl-files/typedef.h
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2009-04-15 14:45:41 +0000
committerNanang Izzuddin <nanang@teluu.com>2009-04-15 14:45:41 +0000
commitb20356ecb30f87a4b7aca162dac946c9710e23f3 (patch)
treeee64bc0c440a820e1475ddce5de0e099f0dc6847 /third_party/g7221/common/stl-files/typedef.h
parentfb257e0aaa5b9b078b57c252acdf69c1ba793513 (diff)
Ticket #774:
- Added build config for GNU autoconf & make. - Fixed some G.722.1 codes for linux & mingw32 targets, e.g: types defs, collision function name 'round'. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2601 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/g7221/common/stl-files/typedef.h')
-rw-r--r--third_party/g7221/common/stl-files/typedef.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/g7221/common/stl-files/typedef.h b/third_party/g7221/common/stl-files/typedef.h
index 6c06541f..9b0ef44c 100644
--- a/third_party/g7221/common/stl-files/typedef.h
+++ b/third_party/g7221/common/stl-files/typedef.h
@@ -16,6 +16,22 @@
#ifndef TYPEDEF_H
#define TYPEDEF_H "$Id $"
+#if 1
+
+/* Use PJLIB types definitions (for PJLIB sync'd platforms compatibility?
+ * e.g: mingw32 was not supported by the original version).
+ */
+#include <pj/types.h>
+
+typedef pj_int8_t Word8;
+typedef pj_int16_t Word16;
+typedef pj_int32_t Word32;
+typedef pj_uint16_t UWord16;
+typedef pj_uint32_t UWord32;
+typedef int Flag;
+
+#else
+
#include <limits.h>
#if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__ZTC__) || defined(__CYGWIN__)
@@ -52,4 +68,7 @@ typedef unsigned int UWord32;
typedef unsigned long UWord32;
#endif
+#endif /* if 0 */
+
#endif /* TYPEDEF_H */
+