aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-08-19 13:39:12 +0000
committerWerner Koch <[email protected]>2010-08-19 13:39:12 +0000
commita160ddd577f693f9cb97efec502b587877917bc3 (patch)
treee2787a130e4c0557d5aba4f89d37807fb9250fb7 /src
parentAdd gpg_err_deinit (diff)
downloadlibgpg-error-a160ddd577f693f9cb97efec502b587877917bc3.tar.gz
libgpg-error-a160ddd577f693f9cb97efec502b587877917bc3.zip
Require new GPG_ERR_ENABLE_ERRNO_MACROS define to include the strerror
define.
Diffstat (limited to 'src')
-rw-r--r--src/w32ce-add.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32ce-add.h b/src/w32ce-add.h
index 83b7538..c6207bb 100644
--- a/src/w32ce-add.h
+++ b/src/w32ce-add.h
@@ -3,5 +3,6 @@
/* Substitute for strerror - this one is thread safe. */
char *_gpg_w32ce_strerror (int err);
-#define strerror(a) _gpg_w32ce_strerror (a)
-
+#ifdef GPG_ERR_ENABLE_ERRNO_MACROS
+# define strerror(a) _gpg_w32ce_strerror (a)
+#endif