blob: 48fc3a4b3eb54c3f1f209fa454f634790a7ac89d [file] [log] [blame]
Eric Haszlakiewiczb98aa6e2012-07-29 14:59:01 -05001
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") */