r27221 - trunk/contrib/fec/src/csrc

[email protected] Thu, 23 Apr 2009 01:41:03 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-23 01:41:02 +0000 (Thu, 23 Apr 2009)
New Revision: 27221

Modified:
   trunk/contrib/fec/src/csrc/fec.h
Log:
fix cross compiler build

Modified: trunk/contrib/fec/src/csrc/fec.h
===================================================================
--- trunk/contrib/fec/src/csrc/fec.h	2009-04-23 01:40:52 UTC (rev 27220)
+++ trunk/contrib/fec/src/csrc/fec.h	2009-04-23 01:41:02 UTC (rev 27221)
@@ -38,13 +38,26 @@
  * but fastest operation is achieved with 8 bit elements
  * This is the only parameter you may want to change.
  */
+
+#pragma once
+
 #ifndef GF_BITS
 #error GF_BITS NOT DEFINED!
 #endif
 
 #if defined(__GNUC__) || !defined(_WIN32)
 #include <stdint.h>
+#else
+#ifndef uint8_t
+#define uint8_t unsigned char
 #endif
+#ifndef uint16_t
+#define uint16_t unsigned short
+#endif
+#ifndef uint32_t
+#define uint32_t unsigned int
+#endif
+#endif
 
 #if (GF_BITS <= 8)
 typedef uint8_t gf;