aboutsummaryrefslogtreecommitdiff
path: root/ports/openssl-windows/STRINGIFYPatch.patch
blob: dd8f9c29728f6886a3431ebe34947e51b26624c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/crypto/cversion.c b/crypto/cversion.c
index bfff699..17b7912 100644
--- a/crypto/cversion.c
+++ b/crypto/cversion.c
@@ -56,6 +56,9 @@
  * [including the GNU Public Licence.]
  */
 
+#define STRINGIFY2(x) #x
+#define STRINGIFY(x) STRINGIFY2(x)
+
 #include "cryptlib.h"
 
 #ifndef NO_WINDOWS_BRAINDEATH
@@ -79,7 +82,7 @@ const char *SSLeay_version(int t)
     }
     if (t == SSLEAY_CFLAGS) {
 #ifdef CFLAGS
-        return (CFLAGS);
+        return STRINGIFY(CFLAGS);
 #else
         return ("compiler: information not available");
 #endif