Skip to content

Commit

Permalink
Only include nfd when necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Apr 27, 2024
1 parent b32fed9 commit 8647ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <sys/stat.h>

#include "SDL_stdinc.h"
#include "nfd.h"

#include <errno.h>
#if HAS_POSIX
Expand Down Expand Up @@ -667,6 +666,7 @@ int _nfile_concatPaths( char buf[static 1], int maxLength,
}

#if !SDL_VERSION_ATLEAST( 3, 0, 0 )
#include "nfd.h"
void SDL_ShowOpenFileDialog( SDL_DialogFileCallback callback, void *userdata,
SDL_Window *window,
const SDL_DialogFileFilter *filters,
Expand Down

0 comments on commit 8647ba9

Please sign in to comment.