]> git.lyx.org Git - lyx.git/blobdiff - development/scons/scons_utils.py
Embedding patch two: read/write embedded files'
[lyx.git] / development / scons / scons_utils.py
index 9fa18265c49a960c712b0640f2138ebef96d9efd..1bfc8013cf02203a298303c474071867e9c7df09 100644 (file)
@@ -236,7 +236,8 @@ int main()
 }
 '''
     conf.Message('Checking for the use of global cstd... ')
-    ret = conf.TryLink(check_global_cstd_source, '.c')
+    # if can not compile, define CXX_GLOBAL_CSTD
+    ret = conf.TryLink(check_global_cstd_source, '.cpp')
     conf.Result(ret)
     return ret
 
@@ -415,7 +416,7 @@ int main() {
 }
 '''
     conf.Message('Checking if the declaration of iconv needs const... ')
-    ret = conf.TryLink(check_iconv_const, '.c')
+    ret = conf.TryLink(check_iconv_const, '.cpp')
     conf.Result(ret)
     return ret