commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject [28/50] commons-crypto git commit: Undefine snprintf on MinGW
Date Fri, 22 Jul 2016 07:00:56 GMT
Undefine snprintf on MinGW

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

Branch: refs/heads/CRYPTO-1.0.0
Commit: 5a4c8059fbc49f90d150f00f42049eadf4ac996d
Parents: 56894ba
Author: Sebb <sebb@apache.org>
Authored: Sat Jul 9 19:00:30 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sat Jul 9 19:00:30 2016 +0100

----------------------------------------------------------------------
 .../native/org/apache/commons/crypto/org_apache_commons_crypto.h   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/5a4c8059/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
----------------------------------------------------------------------
diff --git a/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h b/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
index f39faa7..4fbcc83 100644
--- a/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
+++ b/src/main/native/org/apache/commons/crypto/org_apache_commons_crypto.h
@@ -133,7 +133,9 @@ void *do_dlsym(JNIEnv *env, void *handle, const char *symbol) {
 #include <stdio.h>
 #include <jni.h>
 
+#if !defined(__MINGW32__) /* does not appear to be needed on MinGW */
 #define snprintf(a, b ,c, d) _snprintf_s((a), (b), _TRUNCATE, (c), (d))
+#endif
 
 /* A helper macro to dlsym the requisite dynamic symbol and bail-out on error. */
 #define LOAD_DYNAMIC_SYMBOL(func_type, func_ptr, env, handle, symbol) \


Mime
View raw message