Browse Source

Fix dllexport usage, courtesy of Carlo Bramini in #48.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
51cf438fb0
2 changed files with 7 additions and 7 deletions
  1. +4
    -4
      caca/caca.h
  2. +3
    -3
      caca/caca0.h

+ 4
- 4
caca/caca.h View File

@@ -1,6 +1,6 @@
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
* Copyright (c) 2002-2010 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved
*
* $Id$
@@ -31,10 +31,10 @@
#endif

#undef __extern
#if defined(_DOXYGEN_SKIP_ME)
#elif defined(_WIN32) && defined(__LIBCACA__)
#if defined _DOXYGEN_SKIP_ME
#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT
# define __extern extern __declspec(dllexport)
#elif defined(_WIN32)
#elif defined _WIN32 && !defined __LIBCACA__
# define __extern extern __declspec(dllimport)
#else
# define __extern extern


+ 3
- 3
caca/caca0.h View File

@@ -23,10 +23,10 @@
#include <caca.h>

#undef __extern
#if defined(_DOXYGEN_SKIP_ME)
#elif defined(_WIN32) && defined(__LIBCACA__)
#if defined _DOXYGEN_SKIP_ME
#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT
# define __extern extern __declspec(dllexport)
#elif defined(_WIN32)
#elif defined _WIN32 && !defined __LIBCACA__
# define __extern extern __declspec(dllimport)
#else
# define __extern extern


Loading…
Cancel
Save