Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/shared/platform/win/nacl_time.c

Issue 1778653002: Add explicit includes for a few intrinsics. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl Server Runtime time abstraction layer. 8 * NaCl Server Runtime time abstraction layer.
9 * This is the host-OS-dependent implementation. 9 * This is the host-OS-dependent implementation.
10 */ 10 */
11 11
12 /* Make sure that winmm.lib is added to the linker's input. */ 12 /* Make sure that winmm.lib is added to the linker's input. */
13 #pragma comment(lib, "winmm.lib") 13 #pragma comment(lib, "winmm.lib")
14 14
15 #include <windows.h> 15 #include <windows.h>
16 #include <intrin.h>
Roland McGrath 2016/03/08 21:58:25 Sort #include's per style guide.
Nico 2016/03/08 22:03:37 The rest of the includes is sorted with windows.h
Roland McGrath 2016/03/08 22:05:31 OK. If <windows.h> first is a normal exception to
16 #include <mmsystem.h> 17 #include <mmsystem.h>
17 #include <sys/timeb.h> 18 #include <sys/timeb.h>
18 #include <time.h> 19 #include <time.h>
19 20
20 #include "native_client/src/include/nacl_macros.h" 21 #include "native_client/src/include/nacl_macros.h"
21 #include "native_client/src/shared/platform/nacl_time.h" 22 #include "native_client/src/shared/platform/nacl_time.h"
22 #include "native_client/src/shared/platform/win/nacl_time_types.h" 23 #include "native_client/src/shared/platform/win/nacl_time_types.h"
23 24
24 #include "native_client/src/shared/platform/nacl_log.h" 25 #include "native_client/src/shared/platform/nacl_log.h"
25 #include "native_client/src/shared/platform/nacl_sync.h" 26 #include "native_client/src/shared/platform/nacl_sync.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 } 489 }
489 } 490 }
490 NaClLog(4, "Resolution gap %d\n", resolution_gap); 491 NaClLog(4, "Resolution gap %d\n", resolution_gap);
491 sleep_ms += resolution_gap; 492 sleep_ms += resolution_gap;
492 493
493 NaClLog(4, "Sleep(%d)\n", sleep_ms); 494 NaClLog(4, "Sleep(%d)\n", sleep_ms);
494 Sleep(sleep_ms); 495 Sleep(sleep_ms);
495 496
496 return 0; 497 return 0;
497 } 498 }
OLDNEW
« no previous file with comments | « src/shared/platform/win/nacl_exit.c ('k') | src/trusted/service_runtime/arch/x86_32/sel_rt_32.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698