Difference between revisions of "Template:Stub-Header"
From CBLFS
Jump to navigationJump to searchLine 1: | Line 1: | ||
==== Creating a Stub Header ==== | ==== Creating a Stub Header ==== | ||
− | cat > /usr/include/{{{1}}} << "EOF" | + | cat > {{{2|/usr/include}}}/{{{1}}} << "EOF" |
/* {{{1}}} - Stub Header */ | /* {{{1}}} - Stub Header */ | ||
#ifndef __STUB__{{UC:{{{1}}}}}__ | #ifndef __STUB__{{UC:{{{1}}}}}__ | ||
Line 13: | Line 13: | ||
# include "{{{1}}}-64.h" | # include "{{{1}}}-64.h" | ||
#else | #else | ||
− | # include " | + | # include "{{{1}}}-32.h" |
#endif | #endif | ||
#endif /* __STUB__{{UC:{{{1}}}}}__ */ | #endif /* __STUB__{{UC:{{{1}}}}}__ */ | ||
EOF | EOF |
Revision as of 16:36, 26 December 2006
Creating a Stub Header
cat > /usr/include/{{{1}}} << "EOF" /* {{{1}}} - Stub Header */ #ifndef __STUB__{{{1}}}__ #define __STUB__{{{1}}}__ #if defined(__x86_64) || \ defined(__sparc64__) || \ defined(__arch64__) || \ defined(__powerpc64__) || \ defined (__s390x__) # include "{{{1}}}-64.h" #else # include "{{{1}}}-32.h" #endif #endif /* __STUB__{{{1}}}__ */ EOF