pre-2.3.4..
[davej-history.git] / include / asm-sparc / cprefix.h
blob42e7bd577ed3851a6d122bd490ad4306f34859de
1 /* cprefix.h: This file is included by assembly source which needs
2 * to know what the c-label prefixes are. The newer versions
3 * of cpp that come with gcc predefine such things to help
4 * us out. The reason this stuff is needed is to make
5 * solaris compiles of the kernel work.
7 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
8 */
9 #ifndef __SPARC_CPREFIX_H
10 #define __SPARC_CPREFIX_H
12 #if defined(__svr4__) || defined(__ELF__)
13 #define C_LABEL_PREFIX
14 #define C_LABEL_STR(name) #name
15 #else
16 #define C_LABEL_PREFIX _
17 #define C_LABEL_STR(name) "_" #name
18 #endif
20 #define CONCAT(a, b) CONCAT2(a, b)
21 #define CONCAT2(a, b) a##b
23 #define C_LABEL(name) CONCAT(C_LABEL_PREFIX, name)
25 #endif /* !(__SPARC_CPREFIX_H) */