]> mj.ucw.cz Git - libucw.git/blobdiff - lib/config.h
Syncing crashed repository with my work tree.
[libucw.git] / lib / config.h
index 8b09c820d3551c688150a1e3f789fa85d944c491..3c06a4700efe87ab55ef2d534ddcdc81f5976540 100644 (file)
@@ -4,9 +4,12 @@
  *     (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
  */
 
+#ifndef _SHERLOCK_CONFIG_H
+#define _SHERLOCK_CONFIG_H
+
 /* Version */
 
-#define SHER_VER "0.1"
+#define SHER_VER "1.0"
 
 /* Types */
 
@@ -18,6 +21,18 @@ typedef unsigned int ulg;            /* exactly 32 bits, unsigned */
 typedef int slg;                       /* exactly 32 bits, signed */
 typedef unsigned int uns;              /* at least 32 bits */
 
+#ifndef NULL
+#define NULL (void *)0
+#endif
+
+/* CPU characteristics */
+
+#define CPU_LITTLE_ENDIAN
+#undef CPU_BIG_ENDIAN
+#define CPU_CAN_DO_UNALIGNED_WORDS
+#define CPU_CAN_DO_UNALIGNED_LONGS
+#define CPU_STRUCT_ALIGN 4
+
 /* Misc */
 
 #ifdef __GNUC__
@@ -32,6 +47,4 @@ typedef unsigned int uns;             /* at least 32 bits */
 
 #endif
 
-#ifdef linux
-#define HAVE_FFS
 #endif