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

Side by Side Diff: src/shared/platform/win/nacl_exit.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
« no previous file with comments | « no previous file | src/shared/platform/win/nacl_time.c » ('j') | src/shared/platform/win/nacl_time.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <intrin.h>
7 #include <stdlib.h> 8 #include <stdlib.h>
8 #include <stdio.h> 9 #include <stdio.h>
9 10
10 #include "native_client/src/include/portability.h" 11 #include "native_client/src/include/portability.h"
11 #include "native_client/src/shared/platform/nacl_exit.h" 12 #include "native_client/src/shared/platform/nacl_exit.h"
12 #include "native_client/src/trusted/service_runtime/nacl_signal.h" 13 #include "native_client/src/trusted/service_runtime/nacl_signal.h"
13 14
14 15
15 /* 16 /*
16 * The MSVC compiler wrongly gives an "unreachable code" warning for 17 * The MSVC compiler wrongly gives an "unreachable code" warning for
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * ideal, but it is OK because NaClExit() should only be used for 73 * ideal, but it is OK because NaClExit() should only be used for
73 * graceful exits (when no internal errors have been detected), 74 * graceful exits (when no internal errors have been detected),
74 * and because there will be no other threads at this point. 75 * and because there will be no other threads at this point.
75 */ 76 */
76 ExitProcess(err_code); 77 ExitProcess(err_code);
77 78
78 /* Just in case. */ 79 /* Just in case. */
79 NaClAbort(); 80 NaClAbort();
80 #endif 81 #endif
81 } 82 }
OLDNEW
« no previous file with comments | « no previous file | src/shared/platform/win/nacl_time.c » ('j') | src/shared/platform/win/nacl_time.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698