Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 113_btdll.c
blobbb40c08fdd720953e25c5a2ed578a517845c80e7
1 #define tcc_backtrace printf
2 int tcc_backtrace(const char*, ...);
3 #define hello() \
4 tcc_backtrace("hello from %s() / %s:%d",__FUNCTION__,__FILE__,__LINE__)
6 #ifndef _WIN32
7 # define __declspec(n)
8 #endif
10 #if DLL==1
11 __declspec(dllexport) int f_1()
13 hello();
14 return 0;
18 #elif DLL==2
19 __declspec(dllexport) int f_2()
21 hello();
22 return 0;
26 #else
28 int f_1();
29 int f_2();
30 int f_main()
32 hello();
33 return 0;
36 int main ()
38 f_1();
39 f_2();
40 f_main();
41 return 0;
44 #endif