summaryrefslogtreecommitdiff
path: root/uts/debian/cpp
blob: 488dc442c58fa5a38d09870b9b90ab11841b416b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# A wrapper for CPP (C preprocessor)
# specially for rpcgen source files (*.x)
# which uses "%#ifdef <CRAP>" while <CRAP>
# is defined by default in GCC's CPP
# For example:
# "%#ifdef _LP64" will become "#ifdef 1"
# instead of "#ifdef _LP64", because GNU CPP
# defines _LP64 by default.
#
# Used as:
# RCPGEN='rpcgen -Y $(CURDIR)/debian'

set -x
set -e

exec /usr/bin/cpp -U_LP64 -U__STDC__ "$@"