[gjs] Fix build with c++11 mode



commit 1081beec6a7fa9e837961603124cd986ecd97aa3
Author: Ting-Wei Lan <lantw44 gmain com>
Date:   Mon Feb 17 15:36:39 2014 -0500

    Fix build with c++11 mode
    
    Add a space between "." and G_MODULE_SUFFIX.  Having them touching each
    other gives this error with a sufficiently picky compiler (clang):
    
      error: invalid suffix on literal; C++11 requires a space between
      literal and identifier [-Wreserved-user-defined-literal]
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724092

 gjs/importer.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index a76986f..cccd6a9 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -774,7 +774,7 @@ importer_new_enumerate(JSContext  *context,
                 if (g_file_test(full_path, G_FILE_TEST_IS_DIR)) {
                     g_ptr_array_add(iter->elements, g_strdup(filename));
                 } else {
-                    if (g_str_has_suffix(filename, "."G_MODULE_SUFFIX) ||
+                    if (g_str_has_suffix(filename, "." G_MODULE_SUFFIX) ||
                         g_str_has_suffix(filename, ".js")) {
                         g_ptr_array_add(iter->elements,
                                         g_strndup(filename, strlen(filename) - 3));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]