Alexandre Julliard | 0628c7e | 2005-08-29 14:16:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * crt0 library private definitions |
| 3 | * |
| 4 | * Copyright 2005 Alexandre Julliard |
| 5 | * |
| 6 | * This library is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_CRT0_PRIVATE_H__ |
| 22 | #define __WINE_CRT0_PRIVATE_H__ |
| 23 | |
| 24 | #ifdef __APPLE__ |
| 25 | static inline void _init(int argc, char **argv, char **envp ) { /* nothing */ } |
| 26 | static inline void _fini(void) { /* nothing */ } |
| 27 | #else |
Alexandre Julliard | 220f2ce | 2005-10-30 19:10:35 +0000 | [diff] [blame] | 28 | extern void _init(int argc, char **argv, char **envp ) DECLSPEC_HIDDEN; |
| 29 | extern void _fini(void) DECLSPEC_HIDDEN; |
Alexandre Julliard | 0628c7e | 2005-08-29 14:16:27 +0000 | [diff] [blame] | 30 | #endif |
| 31 | |
Alexandre Julliard | ce20722 | 2005-09-02 14:43:03 +0000 | [diff] [blame] | 32 | enum init_state |
| 33 | { |
| 34 | NO_INIT_DONE, /* no initialization done yet */ |
| 35 | DLL_REGISTERED, /* the dll has been registered */ |
| 36 | CONSTRUCTORS_DONE /* the constructors have been run (implies dll registered too) */ |
| 37 | }; |
| 38 | |
Alexandre Julliard | 220f2ce | 2005-10-30 19:10:35 +0000 | [diff] [blame] | 39 | extern enum init_state __wine_spec_init_state DECLSPEC_HIDDEN; |
Alexandre Julliard | 68f1773 | 2005-08-29 21:49:57 +0000 | [diff] [blame] | 40 | |
Alexandre Julliard | 0628c7e | 2005-08-29 14:16:27 +0000 | [diff] [blame] | 41 | #endif /* __WINE_CRT0_PRIVATE_H__ */ |