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
|
#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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue