add const declaration to newfopen
This commit is contained in:
parent
835c99560e
commit
be02c10637
|
|
@ -221,7 +221,7 @@ extern double x_atanh(double);
|
|||
#ifndef EXT_ASC
|
||||
#if defined(__MINGW__) || defined(_MSC_VER)
|
||||
#define fopen newfopen
|
||||
extern FILE *newfopen(char *fn, char* md);
|
||||
extern FILE *newfopen(const char *fn, const char* md);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ ngdirname(const char *name)
|
|||
#undef BOOLEAN
|
||||
#include <windows.h>
|
||||
FILE *
|
||||
newfopen(char *fn, char* md)
|
||||
newfopen(const char *fn, const char* md)
|
||||
{
|
||||
if (fn == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue