Ignore:
Timestamp:
Nov 23, 2007, 11:27:21 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Add proper declspec(dllexport) tags for Win32 compilation.
  • Manually export private libcaca symbols.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r2016 r2039  
    2525#define __CACA_H__
    2626
     27#include <cucul.h>
     28
     29#if !defined(_DOXYGEN_SKIP_ME)
     30#   if defined(__WIN32__) && defined(__LIBCACA__)
     31#       define __extern extern __declspec(dllexport)
     32#   else
     33#       define __extern extern
     34#   endif
     35#endif
     36
    2737/** libcaca API version */
    2838#define CACA_API_VERSION_1
    29 
    30 #include <cucul.h>
    3139
    3240#ifdef __cplusplus
     
    181189 *
    182190 *  @{ */
    183 caca_display_t * caca_create_display(cucul_canvas_t *);
    184 int caca_free_display(caca_display_t *);
    185 int caca_refresh_display(caca_display_t *);
    186 int caca_set_display_time(caca_display_t *, unsigned int);
    187 unsigned int caca_get_display_time(caca_display_t *);
    188 unsigned int caca_get_display_width(caca_display_t *);
    189 unsigned int caca_get_display_height(caca_display_t *);
    190 int caca_set_display_title(caca_display_t *, char const *);
     191__extern caca_display_t * caca_create_display(cucul_canvas_t *);
     192__extern int caca_free_display(caca_display_t *);
     193__extern int caca_refresh_display(caca_display_t *);
     194__extern int caca_set_display_time(caca_display_t *, unsigned int);
     195__extern unsigned int caca_get_display_time(caca_display_t *);
     196__extern unsigned int caca_get_display_width(caca_display_t *);
     197__extern unsigned int caca_get_display_height(caca_display_t *);
     198__extern int caca_set_display_title(caca_display_t *, char const *);
    191199/*  @} */
    192200
     
    197205 *
    198206 *  @{ */
    199 int caca_get_event(caca_display_t *, unsigned int, caca_event_t *, int);
    200 unsigned int caca_get_mouse_x(caca_display_t *);
    201 unsigned int caca_get_mouse_y(caca_display_t *);
    202 int caca_set_mouse(caca_display_t *, int);
    203 int caca_set_cursor(caca_display_t *, int);
     207__extern int caca_get_event(caca_display_t *, unsigned int,
     208                            caca_event_t *, int);
     209__extern unsigned int caca_get_mouse_x(caca_display_t *);
     210__extern unsigned int caca_get_mouse_y(caca_display_t *);
     211__extern int caca_set_mouse(caca_display_t *, int);
     212__extern int caca_set_cursor(caca_display_t *, int);
    204213/*  @} */
    205214
     
    208217#endif
    209218
     219#if !defined(_DOXYGEN_SKIP_ME)
     220#   undef __extern
     221#endif
     222
    210223#endif /* __CACA_H__ */
Note: See TracChangeset for help on using the changeset viewer.