Author: j16sdiz
Date: 2009-04-17 18:19:52 +0000 (Fri, 17 Apr 2009)
New Revision: 26949
Modified:
trunk/contrib/fec/src/csrc/fec.c
Log:
Use uint{8,16}_t instead of unsigned {char,short}
Modified: trunk/contrib/fec/src/csrc/fec.c
===================================================================
--- trunk/contrib/fec/src/csrc/fec.c 2009-04-17 17:49:42 UTC (rev 26948)
+++ trunk/contrib/fec/src/csrc/fec.c 2009-04-17 18:19:52 UTC (rev 26949)
@@ -47,6 +47,10 @@
#include <stdlib.h>
#include <string.h>
+#if defined(__GNUC__) || !defined(_WIN32)
+#include <stdint.h>
+#endif
+
/*
* compatibility stuff
*/
@@ -111,9 +115,9 @@
#error "GF_BITS must be 2 .. 16"
#endif
#if (GF_BITS <= 8)
-typedef unsigned char gf;
+typedef uint8_t gf;
#else
-typedef unsigned short gf;
+typedef uint16_t gf;
#endif
#define GF_SIZE ((1 << GF_BITS) - 1) /* powers of \alpha */
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs