diff options
author | rsc <devnull@localhost> | 2005-10-29 17:36:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-29 17:36:49 +0000 |
commit | 58c524094e93cc868e908eb3b8cbd5a2453949d3 (patch) | |
tree | ee7c45038ab83742d491ecac38d4870a172ca55b /include | |
parent | 042e49b817e845aa18f74295f9a7b11cdd9aefb1 (diff) | |
download | plan9port-58c524094e93cc868e908eb3b8cbd5a2453949d3.tar.gz plan9port-58c524094e93cc868e908eb3b8cbd5a2453949d3.tar.bz2 plan9port-58c524094e93cc868e908eb3b8cbd5a2453949d3.zip |
Add autolib.
Diffstat (limited to 'include')
-rw-r--r-- | include/u.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h index 59446be8..ec78ef22 100644 --- a/include/u.h +++ b/include/u.h @@ -150,6 +150,7 @@ typedef int32_t s32int; * Funny-named symbols to tip off 9l to autolink. */ #define AUTOLIB(x) static int __p9l_autolib_ ## x = 1; +#define AUTOFRAMEWORK(x) static int __p9l_autoframework_ ## x = 1; /* * Gcc is too smart for its own good. @@ -158,9 +159,13 @@ typedef int32_t s32int; # if __GNUC__ >= 4 || (__GNUC__==3 && !defined(__APPLE_CC__)) # undef AUTOLIB # define AUTOLIB(x) int __p9l_autolib_ ## x __attribute__ ((weak)); +# undef AUTOFRAMEWORK +# define AUTOFRAMEWORK(x) int __p9l_autoframework_ ## x __attribute__ ((weak)); # else # undef AUTOLIB # define AUTOLIB(x) static int __p9l_autolib_ ## x __attribute__ ((unused)); +# undef AUTOFRAMEWORK +# define AUTOFRAMEWORK(x) static int __p9l_autoframework_ ## x __attribute__ ((unused)); # endif #endif |