caca0.h (libcaca-0.99.beta19) | : | caca0.h (libcaca-0.99.beta20.tar.bz2) | ||
---|---|---|---|---|
/* | /* | |||
* libcaca Colour ASCII-Art library | * libcaca Colour ASCII-Art library | |||
* Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> | * Copyright © 2002—2018 Sam Hocevar <sam@hocevar.net> | |||
* All Rights Reserved | * All Rights Reserved | |||
* | * | |||
* This library is free software. It comes without any warranty, to | * This library is free software. It comes without any warranty, to | |||
* the extent permitted by applicable law. You can redistribute it | * the extent permitted by applicable law. You can redistribute it | |||
* and/or modify it under the terms of the Do What the Fuck You Want | * and/or modify it under the terms of the Do What the Fuck You Want | |||
* to Public License, Version 2, as published by Sam Hocevar. See | * to Public License, Version 2, as published by Sam Hocevar. See | |||
* http://www.wtfpl.net/ for more details. | * http://www.wtfpl.net/ for more details. | |||
*/ | */ | |||
/* | /* | |||
* This header contains glue code for applications using the pre-1.0 | * This header contains glue code for applications using the pre-1.0 | |||
skipping to change at line 29 | skipping to change at line 29 | |||
#define __CACA0_H__ | #define __CACA0_H__ | |||
#include <caca.h> | #include <caca.h> | |||
#undef __extern | #undef __extern | |||
#if defined _DOXYGEN_SKIP_ME | #if defined _DOXYGEN_SKIP_ME | |||
#elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT | #elif defined _WIN32 && defined __LIBCACA__ && defined DLL_EXPORT | |||
# define __extern extern __declspec(dllexport) | # define __extern extern __declspec(dllexport) | |||
#elif defined _WIN32 && !defined __LIBCACA__ | #elif defined _WIN32 && !defined __LIBCACA__ | |||
# define __extern extern __declspec(dllimport) | # define __extern extern __declspec(dllimport) | |||
#elif defined CACA_ENABLE_VISIBILITY | ||||
# define __extern extern __attribute__((visibility("default"))) | ||||
#else | #else | |||
# define __extern extern | # define __extern extern | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" | extern "C" | |||
{ | { | |||
#endif | #endif | |||
/* Function emulation */ | /* Function emulation */ | |||
End of changes. 2 change blocks. | ||||
3 lines changed or deleted | 5 lines changed or added |