Skip to content

Commit

Permalink
Fixed warnings building with gcc 2 and gcc 4 on Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 19, 2013
1 parent c2a29ae commit 0ca5066
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions include/begin_code.h
Expand Up @@ -35,13 +35,7 @@

/* Some compilers use a special export keyword */
#ifndef DECLSPEC
# if defined(__BEOS__) || defined(__HAIKU__)
# if defined(__GNUC__)
# define DECLSPEC __declspec(dllexport)
# else
# define DECLSPEC __declspec(export)
# endif
# elif defined(__WIN32__)
# if defined(__WIN32__)
# ifdef __BORLANDC__
# ifdef BUILD_SDL
# define DECLSPEC
Expand All @@ -54,6 +48,8 @@
# else
# if defined(__GNUC__) && __GNUC__ >= 4
# define DECLSPEC __attribute__ ((visibility("default")))
# elif defined(__GNUC__) && __GNUC__ >= 2
# define DECLSPEC __declspec(dllexport)
# else
# define DECLSPEC
# endif
Expand Down

0 comments on commit 0ca5066

Please sign in to comment.