diff options
author | Baruch Sterin <baruchs@gmail.com> | 2015-10-16 14:02:38 -0700 |
---|---|---|
committer | Baruch Sterin <baruchs@gmail.com> | 2015-10-16 14:02:38 -0700 |
commit | 0e1eb98988fc82a30b95b755966d3efd416d8cbf (patch) | |
tree | 8905d387809a01777ec9fa056f1f382a679281a1 /src/base/main | |
parent | 8810ef12da3f56523a95863d6583f09531dfe8de (diff) | |
download | abc-0e1eb98988fc82a30b95b755966d3efd416d8cbf.tar.gz abc-0e1eb98988fc82a30b95b755966d3efd416d8cbf.tar.bz2 abc-0e1eb98988fc82a30b95b755966d3efd416d8cbf.zip |
make sure all of ABC and related libraries are in the same namespace (when compiled with ABC_NAMESPACE) by removing extern "C" from function definitions
Diffstat (limited to 'src/base/main')
-rw-r--r-- | src/base/main/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/base/main/main.c b/src/base/main/main.c index 7fe224a9..7832bada 100644 --- a/src/base/main/main.c +++ b/src/base/main/main.c @@ -1,6 +1,12 @@ -extern int Abc_RealMain(int argc, char *argv[]); +#include <misc/util/abc_global.h> + +ABC_NAMESPACE_IMPL_START + +int Abc_RealMain(int argc, char *argv[]); + +ABC_NAMESPACE_IMPL_END int main(int argc, char *argv[]) { - return Abc_RealMain(argc, argv); + return ABC_NAMESPACE_PREFIX Abc_RealMain(argc, argv); } |