Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
785fdec8
Commit
785fdec8
authored
Nov 05, 2010
by
Matthias Braun
Browse files
remove some more strange HAVE_ #ifdefs
[r28132]
parent
582b49a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/libcore/lc_common_t.h
View file @
785fdec8
...
...
@@ -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 */
ir/libcore/lc_config.h
View file @
785fdec8
...
...
@@ -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__
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment