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

Unified Diff: tools/nixysa/third_party/gflags-1.0/m4/namespaces.m4

Issue 2043006: WTF NPAPI extension. Early draft. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: tools/nixysa/third_party/gflags-1.0/m4/namespaces.m4
===================================================================
--- tools/nixysa/third_party/gflags-1.0/m4/namespaces.m4 (revision 0)
+++ tools/nixysa/third_party/gflags-1.0/m4/namespaces.m4 (revision 0)
@@ -0,0 +1,15 @@
+# Checks whether the compiler implements namespaces
+AC_DEFUN([AC_CXX_NAMESPACES],
+ [AC_CACHE_CHECK(whether the compiler implements namespaces,
+ ac_cv_cxx_namespaces,
+ [AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ AC_TRY_COMPILE([namespace Outer {
+ namespace Inner { int i = 0; }}],
+ [using namespace Outer::Inner; return i;],
+ ac_cv_cxx_namespaces=yes,
+ ac_cv_cxx_namespaces=no)
+ AC_LANG_RESTORE])
+ if test "$ac_cv_cxx_namespaces" = yes; then
+ AC_DEFINE(HAVE_NAMESPACES, 1, [define if the compiler implements namespaces])
+ fi])
« no previous file with comments | « tools/nixysa/third_party/gflags-1.0/m4/google_namespace.m4 ('k') | tools/nixysa/third_party/gflags-1.0/m4/stl_namespace.m4 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698