Release 5.0-rc1.
[wine.git] / dlls / msvcrt / mtdll.h
blobc01beaff93c8a82916cf5607e9c5fb4a2a9440e5
1 /*
2 * Copyright (c) 2002, TransGaming Technologies Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef WINE_MTDLL_H
20 #define WINE_MTDLL_H
22 #if defined(_MT)
24 #define _mlock(locknum) _lock(locknum)
25 #define _munlock(locknum) _unlock(locknum)
27 void __cdecl _unlock( int locknum );
28 void __cdecl _lock( int locknum );
30 #else
32 #define _mlock(locknum) do {} while(0)
33 #define _munlock(locknum) do {} while(0)
35 #endif
38 #define _SIGNAL_LOCK 1
39 #define _IOB_SCAN_LOCK 2
40 #define _TMPNAM_LOCK 3
41 #define _INPUT_LOCK 4
42 #define _OUTPUT_LOCK 5
43 #define _CSCANF_LOCK 6
44 #define _CPRINTF_LOCK 7
45 #define _CONIO_LOCK 8
46 #define _HEAP_LOCK 9
47 #define _BHEAP_LOCK 10 /* No longer used? */
48 #define _TIME_LOCK 11
49 #define _ENV_LOCK 12
50 #define _EXIT_LOCK1 13
51 #define _EXIT_LOCK2 14
52 #define _THREADDATA_LOCK 15 /* No longer used? */
53 #define _POPEN_LOCK 16
54 #define _LOCKTAB_LOCK 17
55 #define _OSFHND_LOCK 18
56 #define _SETLOCALE_LOCK 19
57 #define _LC_COLLATE_LOCK 20 /* No longer used? */
58 #define _LC_CTYPE_LOCK 21 /* No longer used? */
59 #define _LC_MONETARY_LOCK 22 /* No longer used? */
60 #define _LC_NUMERIC_LOCK 23 /* No longer used? */
61 #define _LC_TIME_LOCK 24 /* No longer used? */
62 #define _MB_CP_LOCK 25
63 #define _NLG_LOCK 26
64 #define _TYPEINFO_LOCK 27
65 #define _STREAM_LOCKS 28
67 /* Must match definition in msvcrt/stdio.h */
68 #define _IOB_ENTRIES 20
70 #define _LAST_STREAM_LOCK (_STREAM_LOCKS+_IOB_ENTRIES-1)
72 #define _TOTAL_LOCKS (_LAST_STREAM_LOCK+1)
74 #endif /* WINE_MTDLL_H */