replaced use of _MAX_PATH with CCHMAXPATH in os/2 code,

it now compiles without HAVE_LIBC
This commit is contained in:
Ozkan Sezer 2021-12-08 14:01:02 +03:00
parent 1940d289bf
commit 8d14e6ea44
3 changed files with 8 additions and 7 deletions

View File

@ -61,19 +61,20 @@
#define HAVE_LIBC 1 #define HAVE_LIBC 1
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_TYPES_H 1
#define HAVE_STDIO_H 1 #define HAVE_STDIO_H 1
#define STDC_HEADERS 1 #define STDC_HEADERS 1
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
#define HAVE_STDARG_H 1
#define HAVE_STDDEF_H 1
#define HAVE_MALLOC_H 1 #define HAVE_MALLOC_H 1
#define HAVE_MEMORY_H 1 #define HAVE_MEMORY_H 1
#define HAVE_STRING_H 1 #define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1 #define HAVE_STRINGS_H 1
#define HAVE_WCHAR_H 1 #define HAVE_WCHAR_H 1
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_LIMITS_H 1 #define HAVE_LIMITS_H 1
#define HAVE_CTYPE_H 1 #define HAVE_CTYPE_H 1
#define HAVE_MATH_H 1 #define HAVE_MATH_H 1

View File

@ -25,9 +25,9 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */ /* System dependent filesystem routines */
#include "../../core/os2/SDL_os2.h"
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_filesystem.h" #include "SDL_filesystem.h"
#include "../../core/os2/SDL_os2.h"
#define INCL_DOSFILEMGR #define INCL_DOSFILEMGR
#define INCL_DOSPROCESS #define INCL_DOSPROCESS
@ -43,7 +43,7 @@ SDL_GetBasePath(void)
ULONG ulRC = DosGetInfoBlocks(&tib, &pib); ULONG ulRC = DosGetInfoBlocks(&tib, &pib);
PCHAR pcEnd; PCHAR pcEnd;
ULONG cbResult; ULONG cbResult;
CHAR acBuf[_MAX_PATH]; CHAR acBuf[CCHMAXPATH];
if (ulRC != NO_ERROR) { if (ulRC != NO_ERROR) {
debug_os2("DosGetInfoBlocks() failed, rc = %u", ulRC); debug_os2("DosGetInfoBlocks() failed, rc = %u", ulRC);
@ -73,7 +73,7 @@ char *
SDL_GetPrefPath(const char *org, const char *app) SDL_GetPrefPath(const char *org, const char *app)
{ {
PSZ pszPath; PSZ pszPath;
CHAR acBuf[_MAX_PATH]; CHAR acBuf[CCHMAXPATH];
int lPosApp, lPosOrg; int lPosApp, lPosOrg;
PSZ pszApp, pszOrg; PSZ pszApp, pszOrg;

View File

@ -394,7 +394,7 @@ static MRESULT _wmDrop(WINDATA *pWinData, PDRAGINFO pDragInfo)
{ {
ULONG ulIdx; ULONG ulIdx;
PDRAGITEM pDragItem; PDRAGITEM pDragItem;
CHAR acFName[_MAX_PATH]; CHAR acFName[CCHMAXPATH];
PCHAR pcFName; PCHAR pcFName;
if (!DrgAccessDraginfo(pDragInfo)) if (!DrgAccessDraginfo(pDragInfo))