search for: flac_stat

Displaying 8 results from an estimated 8 matches for "flac_stat".

2014 Apr 09
1
[PATCH] for include/share/compat.h
This file has the following code: #ifdef _WIN32 /* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */ [...] #define flac_stat _stat64_utf8 #else [...] #ifdef _WIN32 #define flac_stat _stat64 #else #define flac_stat stat #endif #endif The second "#ifdef _WIN32" doesn't make much sense. -------------- next part -------------- A non-text attachment was scrubbed... Name: flac_stat.patch Type: application/o...
2008 Feb 20
2
FLAC seeking error
I am writing a FLAC encoder/decoder and when I use the flac_static.lib that was compiled in debug mode in MS Visual Studio 2003, the seek_absolute function works fine. However, if I compile flac_static in release mode in the same environment, the seek_absolute function no longer works. No parts of my code change, the only difference is whether I link in the re...
2013 Mar 19
2
Patch to add Unicode filename support for win32 flac
On 18.3.2013 12:25, Erik de Castro Lopo wrote: > JonY wrote: > >> Before anyone does anything, see __wgetmainargs >> <http://msdn.microsoft.com/en-us/library/ff770599.aspx>. >> >> It can expand wildcards. Since it already provides argc/argv/env, it is >> more a less a drop-in replacement for the main() arguments. > +1 > > Erik Alright, here's
2013 Mar 19
0
Patch to add Unicode filename support for win32 flac
...le I'm busy. > Should the following #if defined _MSC_VER || defined __MINGW32__ be simplified to #ifdef WIN32 ? Alternatively _WIN32. Since it's win32 and not something compiler specific. As for the macros: +#define flac_vfprintf vfprintf_utf8 +#define flac_fopen fopen_utf8 +#define flac_stat _stat64_utf8 ... I leave this up for Erik to decide, though I would have preferred not using rename macros at all. Not sure if these were intended: +#include <sys/stat.h> /* for flac_stat() */ +#include <sys/utime.h> /* for flac_utime() */ +#include <io.h> /* for flac_chmod() */...
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...this to get time_t */ #include <utime.h> /* for utime() */ #endif +#endif #if defined _MSC_VER # if _MSC_VER >= 1800 @@ -160,11 +164,15 @@ #define flac_fopen fopen #define flac_chmod chmod -#define flac_utime utime #define flac_unlink unlink #define flac_rename rename #define flac_stat stat +#if _POSIX_C_SOURCE >= 200809L +#define flac_utime(a, b) utimensat (AT_FDCWD, a, *b, 0) +#else +#define flac_utime utime +#endif #endif #ifdef _WIN32 diff --git a/src/libFLAC/metadata_iterators.c b/src/libFLAC/metadata_iterators.c index 352a6c7a..d5255eb9 100644 --- a/src/libFLAC/met...
2013 Mar 19
3
Patch to add Unicode filename support for win32 flac
...; > be simplified to > #ifdef WIN32 > > ? Alternatively _WIN32. Since it's win32 and not something compiler > specific. Indeed. Not sure what I was thinking. > > As for the macros: > +#define flac_vfprintf vfprintf_utf8 > +#define flac_fopen fopen_utf8 > +#define flac_stat _stat64_utf8 > ... > > I leave this up for Erik to decide, though I would have preferred not > using rename macros at all. I think this is the sanest way. Only few #ifdefs instead of wrapper functions filled with them that do essentially nothing on *nix. > > Not sure if these w...
2016 Jan 09
0
Lets do a 1.3.2 release
...`fopen_utf8' flac/src/libFLAC/stream_decoder.c:609: undefined reference to `fopen_utf8' include/share/compat.h, #ifdef _WIN32: #define flac_fopen fopen_utf8 #define flac_chmod chmod_utf8 #define flac_utime utime_utf8 #define flac_unlink unlink_utf8 #define flac_rename rename_utf8 #define flac_stat _stat64_utf8 The members of the libFLAC API that result in calls to these functions include FLAC__stream_decoder_init_file, FLAC__stream_decoder_init_ogg_file, and a variety of metadata functions. These functions either take a char* filename or use one stored in a struct. Fortunately, UTF-8 is a s...
2016 Jan 09
3
Lets do a 1.3.2 release
...w64, I can see two files: >> libFLAC.a and libFLAC-static.a. The only difference between them >> is that libFLAC.a contains functions from win_utf8_io. >> But 'make install' adds libFLAC.a into /local/lib, not libFLAC-static.a. > > > P.S.: Visual Studio creates libFLAC_static.lib and libFLAC_dynamic.dll, and > none of them contain win_utf8_io stuff. I was wrong. In Visual Studio, 'flac' project depends on 'libFLAC_static' project and all the projects from src/share: getopt_static, grabbag_static, replaygain_analysis_static, replaygain_synthesis_st...