[asterisk-commits] rizzo: trunk r48959 - /trunk/codecs/g722/g722.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Dec 24 23:42:15 MST 2006


Author: rizzo
Date: Mon Dec 25 00:42:15 2006
New Revision: 48959

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48959
Log:
provide INT16_MIN and INT16_MAX for platforms where they are not defined.


Modified:
    trunk/codecs/g722/g722.h

Modified: trunk/codecs/g722/g722.h
URL: http://svn.digium.com/view/asterisk/trunk/codecs/g722/g722.h?view=diff&rev=48959&r1=48958&r2=48959
==============================================================================
--- trunk/codecs/g722/g722.h (original)
+++ trunk/codecs/g722/g722.h Mon Dec 25 00:42:15 2006
@@ -45,6 +45,13 @@
     G722_SAMPLE_RATE_8000 = 0x0001,
     G722_PACKED = 0x0002
 };
+
+#ifndef INT16_MAX
+#define INT16_MAX       32767
+#endif
+#ifndef INT16_MIN
+#define INT16_MIN       (-32768)
+#endif
 
 typedef struct
 {



More information about the asterisk-commits mailing list