OSDN Git Service

projects clean up 1
[pinoc/pinoc.git] / pinoc_gcc / lib / include / config.h
diff --git a/pinoc_gcc/lib/include/config.h b/pinoc_gcc/lib/include/config.h
new file mode 100644 (file)
index 0000000..f59a124
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * config.h
+*/
+
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
+
+#ifndef __CHAR_SIZE__
+#define __CHAR_SIZE__ 1
+#endif
+
+#ifndef __SHORT_SIZE__
+#define __SHORT_SIZE__ 2
+#endif
+
+#if defined (__sh__) || defined (__RX__)
+
+#ifndef __INT_SIZE__
+#define __INT_SIZE__ 4
+#endif
+
+#else
+
+#ifndef __INT_SIZE__
+#define __INT_SIZE__ 2
+#endif
+
+#endif
+
+#ifndef __LONG_SIZE__
+#define __LONG_SIZE__ 4
+#endif
+
+#ifndef __FLOAT_SIZE__
+#define __FLOAT_SIZE__ 4
+#endif
+
+#if defined (__sh__) || defined (__RX__) || defined(__m32c__)
+
+#ifndef __DOUBLE_SIZE__
+#define __DOUBLE_SIZE__ 8
+#endif
+
+#ifndef __LONG_DOUBLE_SIZE__
+#define __LONG_DOUBLE_SIZE__ 8
+
+#else //defined (__sh__) || defined (__RX__) || defined(__m32c__)
+#ifndef __DOUBLE_SIZE__
+#define __DOUBLE_SIZE__ 4
+#endif
+
+#ifndef __LONG_DOUBLE_SIZE__
+#define __LONG_DOUBLE_SIZE__ 4
+#endif 
+
+#endif //defined (__sh__) || defined (__RX__) || defined(__m32c__)
+#endif 
+#endif /* _CONFIG_H_ */