Skip to content

Commit 12dc0d6

Browse files
authored
Revert undesired change to rcore and restore correct win32 ifdef and max path (#5297)
Fixes #5293 also add comment for win32 platform.
1 parent 93c5dc3 commit 12dc0d6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/rcore.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
* - Linux DRM subsystem (KMS mode)
2727
* > PLATFORM_ANDROID:
2828
* - Android (ARM, ARM64)
29-
*
29+
* > PLATFORM_DESKTOP_WIN32 (Native Win32):
30+
* - Windows (Win32, Win64)
3031
* CONFIGURATION:
3132
* #define SUPPORT_DEFAULT_FONT (default)
3233
* Default font is loaded on window initialization to be available for the user to render simple text.
@@ -161,7 +162,10 @@
161162
#endif
162163

163164
// Platform specific defines to handle GetApplicationDirectory()
164-
#if (defined(_WIN32) && !defined(PLATFORM_DESKTOP_RGFW)) || (defined(_MSC_VER) && defined(PLATFORM_DESKTOP_RGFW))
165+
#if defined(_WIN32)
166+
#if !defined(MAX_PATH)
167+
#define MAX_PATH 260
168+
#endif
165169

166170
struct HINSTANCE__;
167171
#if defined(__cplusplus)

0 commit comments

Comments
 (0)