Skip to content

Commit

Permalink
Add -DFLAC__NO_DLL to Flac build flags.
Browse files Browse the repository at this point in the history
This is needed to fix build C2491 errors on Windows:
`definition of dllimport data not allowed` or `definition of dllimport function not allowed`

PiperOrigin-RevId: 667951450
  • Loading branch information
trevorknight authored and felicialim committed Aug 27, 2024
1 parent 5324f28 commit 62918af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions external/flac.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ flac_copts = [
"-DNDEBUG",
"-D_FORTIFY_SOURCE=2",
"-DFLAC__HAS_OGG=0",
"-DFLAC__NO_DLL", # Static library for Windows
"-Iexternal/flac/src/libFLAC/include",
"-Iexternal/flac/include",
]
Expand Down

0 comments on commit 62918af

Please sign in to comment.