Browse Source

Since caca.h now exports variables, we need __declspec(dllimport), otherwise

they won't be seen by the linker when linking dynamically. Fix caca0.h
accordingly.
tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
e3faf62787
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      caca/caca.h
  2. +2
    -0
      caca/caca0.h

+ 2
- 0
caca/caca.h View File

@@ -35,6 +35,8 @@
#if defined(_DOXYGEN_SKIP_ME) #if defined(_DOXYGEN_SKIP_ME)
#elif defined(_WIN32) && defined(__LIBCACA__) #elif defined(_WIN32) && defined(__LIBCACA__)
# define __extern extern __declspec(dllexport) # define __extern extern __declspec(dllexport)
#elif defined(_WIN32)
# define __extern extern __declspec(dllimport)
#else #else
# define __extern extern # define __extern extern
#endif #endif


+ 2
- 0
caca/caca0.h View File

@@ -26,6 +26,8 @@
#if defined(_DOXYGEN_SKIP_ME) #if defined(_DOXYGEN_SKIP_ME)
#elif defined(_WIN32) && defined(__LIBCACA__) #elif defined(_WIN32) && defined(__LIBCACA__)
# define __extern extern __declspec(dllexport) # define __extern extern __declspec(dllexport)
#elif defined(_WIN32)
# define __extern extern __declspec(dllimport)
#else #else
# define __extern extern # define __extern extern
#endif #endif


Loading…
Cancel
Save