Go to the documentation of this file. 1 #ifndef EmbeddedFile_hxx
2 #define EmbeddedFile_hxx
9 #if defined __MINGW32__
11 #define CLAM_EMBEDDED_FILE(varname, file) \
13 " .section \".rodata\"\n" \
14 " .def _" #varname "\n" \
16 " .incbin \"" file "\"\n" \
19 " .size . - _" #varname "\n" \
22 extern const char varname[];
29 #define CLAM_EMBEDDED_FILE(varname, file) \
31 " .section \".rodata\"\n" \
32 " .type " #varname ", @object\n" \
34 " .incbin \"" file "\"\n" \
36 " .size " #varname ", .-" #varname "\n" \
38 extern const char varname[];
40 #error "No support for embedded files in your platform"
41 #define CLAM_EMBEDDED_FILE(varname, file) \
42 extern const char varname[];
47 #define CLAM_EXTERNAL_FILE_DATA(varname, file) CLAM_EMBEDDED_FILE(varname, file)
50 #endif//EmbeddedFile_hxx