Change #include filenames from <foo.h> to <openssl.h>.
[openssl.git] / crypto / pem / pem_err.c
index b8d95204eabbc89b2950b4dfc6332fc33d85a98d..ec138f05e1c8044b3d8b748d678109fa2521ed60 100644 (file)
  * [including the GNU Public Licence.]
  */
 #include <stdio.h>
-#include "err.h"
-#include "pem.h"
+#include <openssl/err.h>
+#include <openssl/pem.h>
 
 /* BEGIN ERROR CODES */
+#ifndef NO_ERR
 static ERR_STRING_DATA PEM_str_functs[]=
        {
 {ERR_PACK(0,PEM_F_DEF_CALLBACK,0),     "DEF_CALLBACK"},
@@ -103,14 +104,19 @@ static ERR_STRING_DATA PEM_str_reasons[]=
 {0,NULL},
        };
 
-void ERR_load_PEM_strings()
+#endif
+
+void ERR_load_PEM_strings(void)
        {
        static int init=1;
 
        if (init)
                {
                init=0;
+#ifndef NO_ERR
                ERR_load_strings(ERR_LIB_PEM,PEM_str_functs);
                ERR_load_strings(ERR_LIB_PEM,PEM_str_reasons);
+#endif
+
                }
        }