lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] [5/14] git commit: refs/heads/master - Add function revealing MSVC.
Date Wed, 02 Jan 2013 20:38:08 GMT
Add function revealing MSVC.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/5b5efa6c
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/5b5efa6c
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/5b5efa6c

Branch: refs/heads/master
Commit: 5b5efa6c018bf785d624abb749083a82707d4760
Parents: 65da488
Author: Marvin Humphrey <marvin@rectangular.com>
Authored: Mon Dec 3 12:20:04 2012 -0800
Committer: Marvin Humphrey <marvin@rectangular.com>
Committed: Wed Jan 2 12:10:11 2013 -0800

----------------------------------------------------------------------
 charmonizer/src/Charmonizer/Core/Compiler.c |    5 +++++
 charmonizer/src/Charmonizer/Core/Compiler.h |    3 +++
 charmonizer/src/Charmonizer/Probe.c         |    4 ++++
 charmonizer/src/Charmonizer/Probe.h         |    5 +++++
 4 files changed, 17 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/5b5efa6c/charmonizer/src/Charmonizer/Core/Compiler.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Core/Compiler.c b/charmonizer/src/Charmonizer/Core/Compiler.c
index d0bd093..92024ff 100644
--- a/charmonizer/src/Charmonizer/Core/Compiler.c
+++ b/charmonizer/src/Charmonizer/Core/Compiler.c
@@ -331,3 +331,8 @@ chaz_CC_gcc_version(void) {
     return chaz_CC.intval___GNUC__ ? chaz_CC.gcc_version_str : NULL;
 }
 
+int
+chaz_CC_compiler_is_msvc(void) {
+    return !!chaz_CC.intval__MSC_VER;
+}
+

http://git-wip-us.apache.org/repos/asf/lucy/blob/5b5efa6c/charmonizer/src/Charmonizer/Core/Compiler.h
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Core/Compiler.h b/charmonizer/src/Charmonizer/Core/Compiler.h
index 49aa897..71a2f6c 100644
--- a/charmonizer/src/Charmonizer/Core/Compiler.h
+++ b/charmonizer/src/Charmonizer/Core/Compiler.h
@@ -74,6 +74,9 @@ chaz_CC_gcc_version_num();
 const char*
 chaz_CC_gcc_version();
 
+int
+chaz_CC_compiler_is_msvc(void);
+
 #ifdef __cplusplus
 }
 #endif

http://git-wip-us.apache.org/repos/asf/lucy/blob/5b5efa6c/charmonizer/src/Charmonizer/Probe.c
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe.c b/charmonizer/src/Charmonizer/Probe.c
index 3005e5d..5e3364e 100644
--- a/charmonizer/src/Charmonizer/Probe.c
+++ b/charmonizer/src/Charmonizer/Probe.c
@@ -161,3 +161,7 @@ chaz_Probe_gcc_version(void) {
     return chaz_CC_gcc_version_num() ? chaz_CC_gcc_version() : NULL;
 }
 
+int
+chaz_Probe_compiler_is_msvc(void) {
+    return chaz_CC_compiler_is_msvc();
+}

http://git-wip-us.apache.org/repos/asf/lucy/blob/5b5efa6c/charmonizer/src/Charmonizer/Probe.h
----------------------------------------------------------------------
diff --git a/charmonizer/src/Charmonizer/Probe.h b/charmonizer/src/Charmonizer/Probe.h
index 147d22c..53f4f5c 100644
--- a/charmonizer/src/Charmonizer/Probe.h
+++ b/charmonizer/src/Charmonizer/Probe.h
@@ -87,6 +87,11 @@ chaz_Probe_gcc_version_num(void);
 const char*
 chaz_Probe_gcc_version(void);
 
+/* Returns true if the compiler is MSVC.
+ */
+int
+chaz_Probe_compiler_is_msvc(void);
+
 #ifdef __cplusplus
 }
 #endif


Mime
View raw message