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

Unified Diff: third_party/getopt/getopt.cc

Issue 1439113002: win: Compile getopt as C++ and wrap in crashpad namespace (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/getopt/getopt.c ('k') | third_party/getopt/getopt.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/getopt/getopt.cc
diff --git a/third_party/getopt/getopt.c b/third_party/getopt/getopt.cc
similarity index 99%
rename from third_party/getopt/getopt.c
rename to third_party/getopt/getopt.cc
index d63492f17f01eb7cd90b3b18f7b48360445e1a6d..1f6eaffdb842111d3bc709e476e3421c01322790 100644
--- a/third_party/getopt/getopt.c
+++ b/third_party/getopt/getopt.cc
@@ -99,6 +99,8 @@ gpietsch@comcast.net
#include "getopt.h"
#endif
+namespace crashpad {
+
/* macros */
/* types */
@@ -415,4 +417,6 @@ getopt_long_only (int argc, char **argv, const char *shortopts,
return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)longopts, longind, 1);
}
+} // namespace crashpad
+
/* end of file GETOPT.C */
« no previous file with comments | « third_party/getopt/getopt.c ('k') | third_party/getopt/getopt.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698