|
7 | 7 | * |
8 | 8 | * Copyright (c) 1994, Regents of the University of California |
9 | 9 | * |
10 | | - * $Id: c.h,v 1.51 1999/02/13 23:20:44 momjian Exp $ |
| 10 | + * $Id: c.h,v 1.52 1999/03/09 13:39:01 scrappy Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
|
57 | 57 | #include<errno.h> |
58 | 58 | #endif |
59 | 59 |
|
| 60 | +#ifdef__CYGWIN32__ |
| 61 | +#include<errno.h> |
| 62 | +#endif |
| 63 | + |
60 | 64 | /* ---------------------------------------------------------------- |
61 | 65 | *Section 1:bool, true, false, TRUE, FALSE |
62 | 66 | * ---------------------------------------------------------------- |
@@ -829,6 +833,20 @@ extern char *form(const char *fmt,...); |
829 | 833 | #defineCOPY_CMD"cp" |
830 | 834 | #defineSEP_CHAR'/' |
831 | 835 |
|
| 836 | +/* defines for dynamic linking on Win32 platform */ |
| 837 | +#ifdef__CYGWIN32__ |
| 838 | +#if__GNUC__&& ! defined (__declspec) |
| 839 | +#error You need egcs 1.1 or newer for compiling! |
| 840 | +#endif |
| 841 | +#ifdefBUILDING_DLL |
| 842 | +#defineDLLIMPORT __declspec (dllexport) |
| 843 | +#else/* not BUILDING_DLL */ |
| 844 | +#defineDLLIMPORT __declspec (dllimport) |
| 845 | +#endif |
| 846 | +#else/* not CYGWIN */ |
| 847 | +#defineDLLIMPORT |
| 848 | +#endif |
| 849 | + |
832 | 850 | /* Provide prototypes for routines not present in a particular machine's |
833 | 851 | * standard C library. It'd be better to put these in config.h, but |
834 | 852 | * in config.h we haven't yet included anything that defines size_t... |
|