Janne Hyvärinen
e8ffe523f8
Windows utf8 utime fix.
...
UTF-8 version of utime was completely broken and file timestamps were
not preserved.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2013-04-21 17:56:16 +10:00
Erik de Castro Lopo
52fab8ba7e
Win utf8 treatment for CreateFile.
...
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-04-21 17:53:07 +10:00
Cristian Rodríguez
92db3c951e
Ensure AM_LDFLAGS is used consistently
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2013-04-21 17:26:33 +10:00
Erik de Castro Lopo
0b736a5605
Fix compiler warnings related to win utf8 stuff.
2013-04-21 17:24:59 +10:00
Erik de Castro Lopo
d0c219f197
A set of windows utf8 patches fromJanne Hyvärinen <cse@sci.fi>.
2013-04-21 16:50:24 +10:00
Erik de Castro Lopo
2de567fb11
src/libFLAC/include/private/macros.h : Add default MIN/MAX macros.
2013-04-07 20:21:24 +10:00
Erik de Castro Lopo
03a9e6064d
src/libFLAC/include/private/macros.h : Check GNUC version for MIN macro.
2013-04-07 20:15:09 +10:00
Erik de Castro Lopo
d6219e8bb1
src/share/Makefile.am : Rejig building of win_utf8_io/libwin_utf8_io.la.
...
This should avoid a build error on Mac OSX where it the Mac build
tools refused to build an empty library. Problem reported by
Michael Guntsche <michael.guntsche@it-loops.com >.
2013-04-07 18:08:18 +10:00
Erik de Castro Lopo
b9574fe589
Fix a bunch of compiler warnings (mainly MinGW).
2013-04-07 13:44:45 +10:00
Erik de Castro Lopo
6a9a18ff7a
For windows, make UTF-8 mode into a runtime choice.
...
The smaller patch makes the utf-8 library use ANSI codepage by
default. When frontends call the "get_utf8_argv" function it
changes Unicode conversion codepage from ANSI to UTF-8.
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-04-07 13:11:19 +10:00
Ulrich Klauer
b500183e95
Only link against libogg (and libm) if needed
...
Most of the programs don't use libogg or libm directly and should not
link to them (overlinking).
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2013-04-07 11:03:56 +10:00
Ulrich Klauer
5da86630be
Fix pkg-config files to avoid overlinking
...
Libraries that are used internally by libFLAC(++) but are not part of
their API should be listed in pkg-config "private" clauses. Otherwise
executables that are linked dynamically against libFLAC(++) will have
unneeded direct dependencies (overlinking).
Based on a patch by Brad Smith from
https://sourceforge.net/p/flac/bugs/397/
that I updated to only include ogg if libFLAC is actually built with
ogg support.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2013-04-07 11:03:52 +10:00
Erik de Castro Lopo
ae7eda1815
Rename all parameters and locals from 'index' to 'indx'.
2013-04-05 20:21:22 +11:00
Erik de Castro Lopo
da57d2a48d
flac*.pc : Add -logg if configured with Ogg support.
2013-04-02 20:45:54 +11:00
Erik de Castro Lopo
051a38362a
flactimer patches from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 20:30:55 +11:00
Erik de Castro Lopo
2b875d77aa
flac_mac safe string patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 20:24:37 +11:00
Erik de Castro Lopo
01e1bb9a58
metaflac typo patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 20:23:59 +11:00
Erik de Castro Lopo
ae5cc0c046
flac_mac patches from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 06:37:13 +11:00
Erik de Castro Lopo
1e89230c3e
Another windows utf8 I/O patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 06:35:37 +11:00
Erik de Castro Lopo
d6218bf3ec
MSVC version patch from Janne Hyvärinen <cse@sci.fi>.
2013-04-02 06:34:38 +11:00
Erik de Castro Lopo
f44c353e59
Two small patches for utf8 I/O.
...
Thanks to LRN <lrn1986@gmail.com >.
2013-04-02 06:27:12 +11:00
Erik de Castro Lopo
932c7ba26c
Purge more strcpy/strcat usage.
2013-04-01 22:00:59 +11:00
Erik de Castro Lopo
0cd2e9ed69
Purge FLAC__STRINGS_IN_UTF8 from VC project files.
2013-04-01 20:01:37 +11:00
Erik de Castro Lopo
2199d08692
Enable utf8 I/O stuff when compiling with MinGW.
2013-04-01 19:57:13 +11:00
Erik de Castro Lopo
b3c3e2ac4f
Use recursive automake in src/share/ part of tree.
...
This will make it easier to incorporate the win_utf8_io stuff.
2013-04-01 19:46:12 +11:00
Erik de Castro Lopo
e14a08766a
Add CLEANFILES to relevant Makefile.am to force removal of Windows EXEs.
...
This ensures they are removed even we've cross-compiled from Linux
to Windows and then configured for Linux. We don't want the Windows
EXEs to be run after configuring for Linux.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
7dc5e3a8ff
Rename _flac_stat to flac_stat_s.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
608e246f52
Rename all 'utf8_io' -> 'win_utf8_io'.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
5705b4d7b2
Huge Windows utf8 I/O patch.
...
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-03-29 21:25:59 +11:00
Erik de Castro Lopo
9b8fdafe3a
src/test_libFLAC/decoders.c : Minor improvement.
2013-03-29 20:54:34 +11:00
Miroslav Lichvar
1ec6e3a064
Fix option names in documentation and help messages.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com >
2013-03-29 16:31:15 +11:00
Erik de Castro Lopo
14c28ae485
Replace a couple of safe_strncpy/cat with snprintf.
2013-03-21 17:28:47 +11:00
Erik de Castro Lopo
2d6354ff2a
Replace broken str* functions with safe versions.
2013-03-19 20:23:44 +11:00
Erik de Castro Lopo
c152d1adf9
More Microsoft Visual Studio project file updates.
...
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-03-18 06:22:57 +11:00
Erik de Castro Lopo
74aac94cda
Windows flac_snprintf tweaks.
...
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-03-17 22:06:11 +11:00
Erik de Castro Lopo
3c84f9e86b
Use new function flac_snprintf() where ever appropriate.
...
This replaces un-safe usage of sprintf() and Micorsoft's _snprintf()
with something sane.
2013-03-17 21:00:07 +11:00
Erik de Castro Lopo
06af237c70
Add file src/share/grabbag/snprintf.c to grabbag library.
...
Define function flac_snprintf() which has ISO C99 snprintf() behavior
even when compiling with Microsoft Visual Studio, by wrapping the
MSVS snprintf_s() function.
2013-03-17 20:52:04 +11:00
Erik de Castro Lopo
f86b1a3353
Wave64 patch from Janne Hyvrinen <cse@sci.fi>.
...
GUID had one word incorrectly in little endian order.
2013-03-17 18:28:57 +11:00
Erik de Castro Lopo
f25b2602dc
Fix a couple of Windows 2Gig file size issues.
...
Patch submitted by Janne Hyvärinen <cse@sci.fi >.
2013-03-14 18:22:37 +11:00
Erik de Castro Lopo
300d17c56f
MS VS : Add alloc.c to the grabbag static build.
...
Patch from Janne Hyvärinen <cse@sci.fi >.
2013-03-12 19:15:04 +11:00
Erik de Castro Lopo
9edb817dd2
MS VS inline/extern fix from Ben Alison plus comments.
...
Add explicit extern to functions that are locally declared inline
but which also have non-inline public prototypes.
It seems MS VS does not quite meet the C99 spec (section 6.7.4).
2013-03-12 17:12:07 +11:00
Erik de Castro Lopo
96a5ba7120
Fix -Wshadow warnings.
2013-03-11 06:06:34 +11:00
Erik de Castro Lopo
0a2b901e99
src/libFLAC/include/private/macros.h : Fix flac_min.
...
The existing flac_min macro was generating -Wshadow compiler warnings
when nested.
2013-03-11 06:06:34 +11:00
Erik de Castro Lopo
dd1fa80883
Fix -Wstrict-prototypes -Wmissing-prototypes warnings.
...
The files src/flac/encode.c and src/libFLAC/stream_encoder.c use
functions in libFLAC that are marked as 'unpublished debug routines'.
This patch moves these functions to new file include/share/private.h
and marks them as 'unpublished debug routines'.
2013-03-11 06:06:33 +11:00
Erik de Castro Lopo
168c258aa3
Purge old un-maintained MSVC 6 project files.
2013-03-10 11:17:20 +11:00
Erik de Castro Lopo
1ad32efb89
Version 1.3.0pre2.
2013-03-09 22:06:12 +11:00
Erik de Castro Lopo
139ffb090d
Fix version number in Visual Studio project files.
...
Patch from Ben Allison <benski@winamp.com > and tweaked to change
version from 1.3.0 (which hasn't been released yet) to 1.3.0pre1.
2013-03-08 21:06:48 +11:00
Erik de Castro Lopo
fd6b192d25
Another MSVC patch from Ben Alison.
2013-03-08 20:47:43 +11:00
Erik de Castro Lopo
a4c321e492
Large patch from Ben Allison fixing the MSVC build.
...
Patch tweaked a little to fix Linux build and clean up minor problems.
2013-03-06 22:17:51 +11:00
Erik de Castro Lopo
91790ef965
Fix compiler warnings from new compiler flags.
2013-03-06 07:42:08 +11:00