Skip to content

Commit

Permalink
[Fix] mpg123: Enable setmode(). We are not using that code path, but …
Browse files Browse the repository at this point in the history
…it is required for generally correct Windows/DOS support.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22006 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Oct 28, 2024
1 parent 3d1f0bf commit c14d0a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/mpg123/ports/MSVC++/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
#define strcasecmp _strcmpi
#define strncasecmp _strnicmp

/* Windows/DOS */
#define HAVE__SETMODE

/* Features */

/* #define LFS_LARGEFILE_64 1 */
Expand Down
7 changes: 7 additions & 0 deletions include/mpg123/ports/makefile/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
#define SIZEOF_OFF_T 8
#endif

/* Windows/DOS */
#if defined(__DJGPP__)
#define HAVE_SETMODE
#elif defined(_WIN32)
#define HAVE__SETMODE
#endif

/* Features */

/* #define LFS_LARGEFILE_64 1 */
Expand Down

0 comments on commit c14d0a7

Please sign in to comment.