add const declaration to newfopen

This commit is contained in:
Holger Vogt 2020-02-18 22:39:38 +01:00
parent 835c99560e
commit be02c10637
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ extern double x_atanh(double);
#ifndef EXT_ASC #ifndef EXT_ASC
#if defined(__MINGW__) || defined(_MSC_VER) #if defined(__MINGW__) || defined(_MSC_VER)
#define fopen newfopen #define fopen newfopen
extern FILE *newfopen(char *fn, char* md); extern FILE *newfopen(const char *fn, const char* md);
#endif #endif
#endif #endif

View File

@ -264,7 +264,7 @@ ngdirname(const char *name)
#undef BOOLEAN #undef BOOLEAN
#include <windows.h> #include <windows.h>
FILE * FILE *
newfopen(char *fn, char* md) newfopen(const char *fn, const char* md)
{ {
if (fn == NULL) if (fn == NULL)
return NULL; return NULL;