| 1 |
/* |
| 2 |
* mdjvucfg.h - file to be included first in all C sources in the library |
| 3 |
*/ |
| 4 |
|
| 5 |
#ifdef MINIDJVU_INCLUDED_FROM_INSIDE |
| 6 |
#error mdjvucfg.h should be included only once in every minidjvu source file |
| 7 |
#endif |
| 8 |
|
| 9 |
|
| 10 |
/* |
| 11 |
* This is needed, for example, to distinguish between dllexport and dllimport. |
| 12 |
*/ |
| 13 |
#define MINIDJVU_INCLUDED_FROM_INSIDE |
| 14 |
|
| 15 |
/* |
| 16 |
* Bridge to autoconf configuration file. |
| 17 |
*/ |
| 18 |
#ifdef HAVE_CONFIG_H |
| 19 |
#include <config.h> |
| 20 |
#endif |
| 21 |
|
| 22 |
/* IM: I'm commenting #ifdef out because it looks like we must use dgettext in |
| 23 |
* the shared library. Yes, it's ugly to redefine a system macro but... |
| 24 |
* #ifndef _ |
| 25 |
*/ |
| 26 |
|
| 27 |
#ifdef HAVE_GETTEXT |
| 28 |
#include <libintl.h> |
| 29 |
#define _(msgid) dgettext("minidjvu", msgid) |
| 30 |
#else |
| 31 |
#define _(msgid) (msgid) |
| 32 |
#endif |
| 33 |
|
| 34 |
/* #endif */ |
| 35 |
|
| 36 |
|
| 37 |
/** |
| 38 |
* Global initialization of the shared library. |
| 39 |
* It's OK to call it more than once. |
| 40 |
* This function is to be called from every constructor |
| 41 |
* so that there's no type-correct way to use minidjvu |
| 42 |
* without calling mdjvu_init() behind the scenes. |
| 43 |
* |
| 44 |
* This function is implemented in 0porting.c. |
| 45 |
*/ |
| 46 |
void mdjvu_init(void); |