OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 /* | 6 /* |
7 * NT interval timers | 7 * NT interval timers |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
| 11 /* Mozilla's build system defines this globally. */ |
| 12 #ifdef WIN32_LEAN_AND_MEAN |
| 13 #undef WIN32_LEAN_AND_MEAN |
| 14 #endif |
11 #include "primpl.h" | 15 #include "primpl.h" |
12 | 16 |
13 #ifdef WINCE | 17 #ifdef WINCE |
14 typedef DWORD (*IntervalFuncType)(void); | 18 typedef DWORD (*IntervalFuncType)(void); |
15 static IntervalFuncType intervalFunc; | 19 static IntervalFuncType intervalFunc; |
16 #endif | 20 #endif |
17 | 21 |
18 void | 22 void |
19 _PR_MD_INTERVAL_INIT() | 23 _PR_MD_INTERVAL_INIT() |
20 { | 24 { |
(...skipping 17 matching lines...) Expand all Loading... |
38 #else | 42 #else |
39 return timeGetTime(); | 43 return timeGetTime(); |
40 #endif | 44 #endif |
41 } | 45 } |
42 | 46 |
43 PRIntervalTime | 47 PRIntervalTime |
44 _PR_MD_INTERVAL_PER_SEC() | 48 _PR_MD_INTERVAL_PER_SEC() |
45 { | 49 { |
46 return 1000; | 50 return 1000; |
47 } | 51 } |
OLD | NEW |