1
0
forked from 0ad/0ad
0ad/source/collada/DLL.h
Ykkrosh 8a9ddae60b Oops, I broke GCC PCH a month ago. Fixed, and added a comment so I now know why it does what it does.
Also, updated the dependency checking so it rebuilds the PCH file when
included files change.

This was SVN commit r4813.
2007-01-26 21:16:49 +00:00

32 lines
816 B
C

#ifndef COLLADA_DLL_H__
#define COLLADA_DLL_H__
#ifdef _WIN32
# ifdef COLLADA_DLL
# define EXPORT extern "C" __declspec(dllexport)
# else
# define EXPORT extern "C" __declspec(dllimport)
# endif
#else
# if __GNUC__ >= 4
# define EXPORT extern "C" __attribute__ ((visibility ("default")))
# else
# define EXPORT extern "C"
# endif
#endif
#define LOG_INFO 0
#define LOG_WARNING 1
#define LOG_ERROR 2
typedef void (*LogFn) (int severity, const char* text);
typedef void (*OutputFn) (void* cb_data, const char* data, unsigned int length);
#define COLLADA_CONVERTER_VERSION 1
EXPORT void set_logger(LogFn logger);
EXPORT int convert_dae_to_pmd(const char* dae, OutputFn pmd_writer, void* cb_data);
EXPORT int convert_dae_to_psa(const char* dae, OutputFn psa_writer, void* cb_data);
#endif /* COLLADA_DLL_H__ */