Define COMP method function prototypes properly.
[openssl.git] / crypto / comp / comp_err.c
index c10282a73c929f15acef5dfc1ed52d724c6828f9..54edbb0e9aa643b9e5f0fb275e2178d92b9e3982 100644 (file)
 #include <stdio.h>
 #include <openssl/err.h>
 #include <openssl/comp.h>
+#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_ERR is defined */
 
 /* BEGIN ERROR CODES */
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
 static ERR_STRING_DATA COMP_str_functs[]=
        {
 {0,NULL}
@@ -83,7 +84,7 @@ void ERR_load_COMP_strings(void)
        if (init)
                {
                init=0;
-#ifndef NO_ERR
+#ifndef OPENSSL_NO_ERR
                ERR_load_strings(ERR_LIB_COMP,COMP_str_functs);
                ERR_load_strings(ERR_LIB_COMP,COMP_str_reasons);
 #endif