Ignore:
Timestamp:
Sep 30, 2008, 1:03:30 AM (11 years ago)
Author:
Sam Hocevar
Message:

Properly export legacy 0.9 symbols.

Location:
libcaca/trunk/caca
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca0.c

    r2821 r2858  
    2424#endif
    2525
    26 #include "caca.h"
    27 #include "caca_internals.h"
     26#include "caca0.h"
    2827
    2928/* These variables are needed to emulate old non-thread safe behaviour */
  • libcaca/trunk/caca/caca0.h

    r2821 r2858  
    2323#include <caca.h>
    2424
     25#undef __extern
     26#if defined(_DOXYGEN_SKIP_ME)
     27#elif defined(_WIN32) && defined(__LIBCACA__)
     28#   define __extern extern __declspec(dllexport)
     29#else
     30#   define __extern extern
     31#endif
     32
    2533#ifdef __cplusplus
    2634extern "C"
     
    2937
    3038/* Function emulation */
    31 extern int __caca0_init(void);
    32 extern void __caca0_end(void);
    33 extern unsigned int __caca0_get_event(unsigned int, int);
    34 extern unsigned int __caca0_sqrt(unsigned int);
    35 extern int __caca0_get_feature(int);
    36 extern void __caca0_set_feature(int);
    37 extern char const *__caca0_get_feature_name(int);
    38 extern caca_canvas_t *__caca0_load_sprite(char const *);
    39 extern caca_dither_t *__caca0_create_bitmap(unsigned int, unsigned int,
    40           unsigned int, unsigned int, unsigned long int, unsigned long int,
    41           unsigned long int, unsigned long int);
    42 extern void __caca0_free_bitmap(caca_dither_t *);
    43 extern char const *__caca0_get_color_name(unsigned char);
     39__extern int __caca0_init(void);
     40__extern void __caca0_end(void);
     41__extern unsigned int __caca0_get_event(unsigned int, int);
     42__extern unsigned int __caca0_sqrt(unsigned int);
     43__extern int __caca0_get_feature(int);
     44__extern void __caca0_set_feature(int);
     45__extern char const *__caca0_get_feature_name(int);
     46__extern caca_canvas_t *__caca0_load_sprite(char const *);
     47__extern caca_dither_t *__caca0_create_bitmap(unsigned int, unsigned int,
     48            unsigned int, unsigned int, unsigned long int, unsigned long int,
     49            unsigned long int, unsigned long int);
     50__extern void __caca0_free_bitmap(caca_dither_t *);
     51__extern char const *__caca0_get_color_name(unsigned char);
    4452
    4553/* These variables are needed to emulate old non-thread safe behaviour */
    46 extern caca_canvas_t *__caca0_cv;
    47 extern caca_display_t *__caca0_dp;
    48 extern unsigned char __caca0_fg;
    49 extern unsigned char __caca0_bg;
     54__extern caca_canvas_t *__caca0_cv;
     55__extern caca_display_t *__caca0_dp;
     56__extern unsigned char __caca0_fg;
     57__extern unsigned char __caca0_bg;
    5058
    5159/* These enums and macros changed names or values */
     
    92100    CACA_FEATURE_UNKNOWN = 0xffff
    93101};
     102
     103#if ! defined __LIBCACA__
    94104
    95105/* This enum still exists in libcaca 1.x, thus cannot be redefined */
     
    190200#define caca_free_bitmap __caca0_free_bitmap
    191201
     202#endif /* ! defined __LIBCACA__ */
     203
    192204#ifdef __cplusplus
    193205}
Note: See TracChangeset for help on using the changeset viewer.