aboutsummaryrefslogtreecommitdiffstats
path: root/gcmain.c
blob: 08b28f2d12c776b886d45df1b9aeba00edd9607a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef GC_MAIN
#define GC_MAIN

#if defined(AIX) || defined(linux)
/* to cope with Boehm GC... */

#define MAIN real_main

#if defined(DEBIAN)
#include "gc/private/gc_priv.h"
#else
#include "private/gc_priv.h"
#endif
int real_main(int, char **, char **);

int
main(int argc, char **argv, char **envp)
{
    int dummy;
    GC_stackbottom = (ptr_t) (&dummy);
    return (real_main(argc, argv, envp));
}
#else
#define MAIN main
#endif

#endif