mirror of https://github.com/xiph/flac
Correctly initialize FLAC_API_SUPPORTS_OGG_FLAC
Commitsa7e3705d05
anda4c321e492
, while trying to simplify how the FLAC_API_SUPPORTS_OGG_FLAC global variable was initialized, inadvertently caused it to be always set to false, whether Ogg support was compiled in or not. This commit reverts the relevant part to how it looked in the 1.2.1 release, which is verbose but correct. The problem was found by Robert Kausch <robert.kausch@freac.org>. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
This commit is contained in:
parent
d2122a0725
commit
c9f05ed210
|
@ -55,11 +55,13 @@
|
|||
|
||||
|
||||
/* technically this should be in an "export.c" but this is convenient enough */
|
||||
#ifdef FLAC_API_SUPPORTS_OGG_FLAC
|
||||
FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC = FLAC__HAS_OGG ;
|
||||
FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC =
|
||||
#if FLAC__HAS_OGG
|
||||
1
|
||||
#else
|
||||
FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC = 0 ;
|
||||
0
|
||||
#endif
|
||||
;
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue