remove some more strange HAVE_ #ifdefs
authorMatthias Braun <matze@braunis.de>
Fri, 5 Nov 2010 13:25:08 +0000 (13:25 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 5 Nov 2010 13:25:08 +0000 (13:25 +0000)
[r28132]

ir/libcore/lc_common_t.h
ir/libcore/lc_config.h

index 33617f4..0c910b1 100644 (file)
 #define LONGLONG     long /* LC_LONGLONG */
 #define LONGDOUBLE   double /* LC_LONGDOUBLE */
 
-#ifdef LC_HAVE_C99
-#define HAVE_C99     LC_HAVE_C99
-#else /* LC_HAVE_C99 */
-
 #ifdef _WIN32
 /* Windows names for non-POSIX calls */
 #define snprintf  _snprintf
 #define vsnprintf _vsnprintf
 #endif /* WIN32 */
 
-/* These both are not posix or ansi c but almost everywhere existent */
-
-/* Daniel: Why not just include stdio.h?
-extern int snprintf(char *buf, size_t size, const char *fmt, ...);
-extern int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
-*/
-
-#endif /* LC_HAVE_C99 */
-
 #endif /* _COMMON_T_H */
index d4f7396..1842ca3 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_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 inline         __inline__
 #define LC_FUNCNAME    __FUNCTION__