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

Side by Side Diff: src/include/win/port_win.h

Issue 1706613002: Fix getopt signature in port_win.h (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 years, 10 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/port_win.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2008, Google Inc. 2 * Copyright 2008, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 # if !defined(INT64_MIN) 133 # if !defined(INT64_MIN)
134 # define INT64_MIN NACL_MIN_VAL(int64_t) 134 # define INT64_MIN NACL_MIN_VAL(int64_t)
135 # endif 135 # endif
136 #endif 136 #endif
137 #endif /* _MSC_VER >= 1800 */ 137 #endif /* _MSC_VER >= 1800 */
138 138
139 EXTERN_C_BEGIN 139 EXTERN_C_BEGIN
140 140
141 /* arguments processing */ 141 /* arguments processing */
142 int ffs(int x); 142 int ffs(int x);
143 int getopt(int argc, char *argv[], char *optstring); 143 int getopt(int argc, char *argv[], const char *optstring);
144 extern char *optarg; /* global argument pointer */ 144 extern char *optarg; /* global argument pointer */
145 extern int optind; /* global argv index */ 145 extern int optind; /* global argv index */
146 146
147 EXTERN_C_END 147 EXTERN_C_END
148 148
149 149
150 /*************************** stdio.h ********************/ 150 /*************************** stdio.h ********************/
151 #ifndef NULL 151 #ifndef NULL
152 #if defined(__cplusplus) 152 #if defined(__cplusplus)
153 #define NULL 0 153 #define NULL 0
154 #else 154 #else
155 #define NULL ((void *)0) 155 #define NULL ((void *)0)
156 #endif 156 #endif
157 #endif 157 #endif
158 158
159 /************************************************************/ 159 /************************************************************/
160 160
161 161
162 /* from linux/limits.h, via sys/param.h */ 162 /* from linux/limits.h, via sys/param.h */
163 #define PATH_MAX 4096 163 #define PATH_MAX 4096
164 164
165 #endif /* NATIVE_CLIENT_SRC_INCLUDE_WIN_PORT_WIN_H_ */ 165 #endif /* NATIVE_CLIENT_SRC_INCLUDE_WIN_PORT_WIN_H_ */
OLDNEW
« no previous file with comments | « no previous file | src/shared/platform/win/port_win.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698