]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/blobdiff - zfec/zfec/fec.h
zfec: fix breakage on VS 2003 due to recent re-arrangement of #define block, and...
[tahoe-lafs/zfec.git] / zfec / zfec / fec.h
index 4004b7252ae7a2fcd22ecb290d6324e8678e683d..db69d5f8c419d7eba6665e5a6bb53b759d1cedaa 100644 (file)
@@ -12,6 +12,12 @@ typedef struct {
   gf* enc_matrix;
 } fec_t;
 
+#if defined(_MSC_VER)
+// actually, some of the flavors (i.e. Enterprise) do support restrict
+//#define restrict __restrict
+#define restrict
+#endif
+
 /**
  * param k the number of blocks required to reconstruct
  * param m the total number of blocks created
@@ -37,10 +43,6 @@ void fec_encode(const fec_t* code, const gf*restrict const*restrict const src, g
 void fec_decode(const fec_t* code, const gf*restrict const*restrict const inpkts, gf*restrict const*restrict const outpkts, const unsigned*restrict const index, size_t sz);
 
 #if defined(_MSC_VER)
-// actually, some of the flavors (i.e. Enterprise) do support restrict
-//#define restrict __restrict
-#define restrict
-#define inline __inline
 #define alloca _alloca
 #else
 #ifdef __GNUC__