Fix compilation errors on FreeBSD.
[wine] / include / msvcrt / eh.h
1 /*
2  * C++ exception handling facility
3  *
4  * Copyright 2000 Francois Gouget.
5  */
6 #ifndef __WINE_EH_H
7 #define __WINE_EH_H
8 #define __WINE_USE_MSVCRT
9
10 #if !defined(__cplusplus) && !defined(__WINE__)
11 #error "eh.h is meant only for C++ applications"
12 #endif
13
14 #ifdef USE_MSVCRT_PREFIX
15 #define MSVCRT(x)    MSVCRT_##x
16 #else
17 #define MSVCRT(x)    x
18 #endif
19
20
21 typedef void (*terminate_handler)();
22 typedef void (*terminate_function)();
23 typedef void (*unexpected_handler)();
24 typedef void (*unexpected_function)();
25
26
27 terminate_function MSVCRT(set_terminate)(terminate_function func);
28 unexpected_function MSVCRT(set_unexpected)(unexpected_function func);
29 void        MSVCRT(terminate)();
30 void        MSVCRT(unexpected)();
31
32 #endif /* __WINE_EH_H */