Eric Haszlakiewicz | b98aa6e | 2012-07-29 14:59:01 -0500 | [diff] [blame^] | 1 | |
| 2 | /* dummy source file for compatibility purposes */ |
| 3 | |
| 4 | #if defined(HAVE_CDEFS_H) |
| 5 | #include <sys/cdefs.h> |
| 6 | #endif |
| 7 | |
| 8 | #ifndef __warn_references |
| 9 | |
| 10 | #ifdef __GNUC__ |
| 11 | #define __warn_references(sym,msg) \ |
| 12 | __asm(".pushsection .gnu.warning." #sym "\n" \ |
| 13 | ".ascii \"" msg "\"\n" \ |
| 14 | ".popsection"); |
| 15 | |
| 16 | #else |
| 17 | #define __warn_references(sym,msg) /* nothing */ |
| 18 | #endif |
| 19 | |
| 20 | #endif |
| 21 | |
| 22 | #include "json_object.h" |
| 23 | |
| 24 | __warn_references(json_object_get, "Warning: please link against libjson-c instead of libjson"); |
| 25 | |
| 26 | /* __asm__(".section .gnu.warning." __STRING(sym) \ |
| 27 | " ; .ascii \"" msg "\" ; .text") */ |