mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add support for building on os/2 with emx
This commit is contained in:
@@ -2856,7 +2856,7 @@ FLAC__bool transport_tempfile_(const char *filename, FILE **tempfile, char **tem
|
||||
(void)fclose(*tempfile);
|
||||
*tempfile = 0;
|
||||
|
||||
#if defined _MSC_VER || defined __MINGW32__
|
||||
#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__
|
||||
if(unlink(filename) < 0) {
|
||||
cleanup_tempfile_(tempfile, tempfilename);
|
||||
*status = FLAC__METADATA_SIMPLE_ITERATOR_STATUS_UNLINK_ERROR;
|
||||
@@ -2908,7 +2908,7 @@ void set_file_stats_(const char *filename, struct stat *stats)
|
||||
srctime.modtime = stats->st_mtime;
|
||||
(void)chmod(filename, stats->st_mode);
|
||||
(void)utime(filename, &srctime);
|
||||
#if !defined _MSC_VER && !defined __MINGW32__
|
||||
#if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__
|
||||
(void)chown(filename, stats->st_uid, -1);
|
||||
(void)chown(filename, -1, stats->st_gid);
|
||||
#endif
|
||||
|
||||
@@ -1178,7 +1178,7 @@ FLAC_API FLAC__bool FLAC__metadata_object_vorbiscomment_entry_matches(const FLAC
|
||||
FLAC__ASSERT(0 != entry.entry && entry.length > 0);
|
||||
{
|
||||
const FLAC__byte *eq = (FLAC__byte*)memchr(entry.entry, '=', entry.length);
|
||||
#if defined _MSC_VER || defined __MINGW32__
|
||||
#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__
|
||||
#define FLAC__STRNCASECMP strnicmp
|
||||
#else
|
||||
#define FLAC__STRNCASECMP strncasecmp
|
||||
|
||||
Reference in New Issue
Block a user