2012-07-29 14:59:01 -05:00
|
|
|
|
|
|
|
|
/* dummy source file for compatibility purposes */
|
|
|
|
|
|
|
|
|
|
#if defined(HAVE_CDEFS_H)
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef __warn_references
|
|
|
|
|
|
2020-03-28 10:25:00 +08:00
|
|
|
#if defined(__GNUC__) && defined(HAS_GNU_WARNING_LONG)
|
2012-09-09 17:33:35 -07:00
|
|
|
|
2020-03-28 10:25:00 +08:00
|
|
|
#define __warn_references(sym, msg) \
|
|
|
|
|
__asm__(".section .gnu" #sym ",\n\t.ascii \"" msg "\"\n\t.text");
|
2012-07-29 14:59:01 -05:00
|
|
|
|
|
|
|
|
#else
|
2020-03-28 10:25:00 +08:00
|
|
|
#define __warn_references(sym, msg) /* nothing */
|
2012-07-29 14:59:01 -05:00
|
|
|
#endif
|
|
|
|
|
|
2014-08-26 14:48:59 +02:00
|
|
|
#endif
|
2012-07-29 14:59:01 -05:00
|
|
|
|
|
|
|
|
#include "json_object.h"
|
|
|
|
|
|
|
|
|
|
__warn_references(json_object_get, "Warning: please link against libjson-c instead of libjson");
|
|
|
|
|
|
|
|
|
|
/* __asm__(".section .gnu.warning." __STRING(sym) \
|
|
|
|
|
" ; .ascii \"" msg "\" ; .text") */
|