keep_alive_barrier operand used wrong block; schedule keep behind phi sequences
[libfirm] / ir / libcore / lc_config.h
index 3cb6bb6..a4c9027 100644 (file)
  * @author Sebastian Hack
  * @date 22.12.2004
  */
-
 #ifndef _LC_CONFIG_H
 #define _LC_CONFIG_H
 
-#if defined(__STD_VERSION__) && __STD_VERSION >= 199901L
-#define LC_HAVE_C99 1
-#endif
-
-/* ISO C99 Standard stuff */
-#ifdef LC_HAVE_C99
-#define LC_INLINE      inline
-#define LC_FUNCNAME    __func__
-#define LC_UNUSED(x)   x
-#define LC_LONGLONG    long long
-#define LC_LONGDOUBLE  long double
-
-/* definitions using GCC */
-#elif defined(__GNUC__)
+#if defined(__GNUC__)
 
-#define LC_INLINE      __inline__
+#define inline         __inline__
 #define LC_FUNCNAME    __FUNCTION__
 #define LC_UNUSED(x)   x __attribute__((__unused__))
+#define LC_PRINTF(m) __attribute__((format(printf,m,(m)+1)))
 
 #ifdef __STRICT_ANSI__
 #define LC_LONGLONG    long
 
 #elif defined(_MSC_VER)
 
-#define LC_INLINE      __inline
 #define LC_FUNCNAME    "<unknown>"
 #define LC_UNUSED(x)   x
+#define LC_PRINTF(m)
+
 #define LC_LONGLONG    __int64
 #define LC_LONGDOUBLE  long double
 
 #endif /* _WIN32 */
 
 #if _MSC_VER <= 1200
-typedef __int16                int16;
-typedef __int32                int32;
-typedef __int64                int64;
-typedef unsigned __int16               uint16;
-typedef unsigned __int32               uint32;
-typedef unsigned __int64               uint64;
+typedef __int16            int16;
+typedef __int32            int32;
+typedef __int64            int64;
+typedef unsigned __int16   uint16;
+typedef unsigned __int32   uint32;
+typedef unsigned __int64   uint64;
 #endif /* _MSC_VER <= 1200 */
 
 /* default definitions */
-#else /* defined(_MSC_VER) */
+#else /* !defined(__GNUC__) && !defined(_MSC_VER) */
 
-#define LC_INLINE
+#define inline
 #define LC_FUNCNAME "<unknown>"
 #define LC_UNUSED(x)
 #define LC_LONGLONG long
 #define LC_LONGDOUBLE double
+#define LC_PRINTF(m)
 
 #endif