Commit 785fdec8 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove some more strange HAVE_ #ifdefs

[r28132]
parent 582b49a2
......@@ -36,23 +36,10 @@
#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 */
......@@ -23,23 +23,10 @@
* @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__
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment