From c28d611a171624509058290944345df0ec78d7ce Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 28 Apr 2019 03:33:36 +0800 Subject: [PATCH] VS2008 can't compile dr_mp3.h --- code/nel/src/sound/audio_decoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/src/sound/audio_decoder.cpp b/code/nel/src/sound/audio_decoder.cpp index 506c01a3b..f56f16a2e 100644 --- a/code/nel/src/sound/audio_decoder.cpp +++ b/code/nel/src/sound/audio_decoder.cpp @@ -146,6 +146,7 @@ bool IAudioDecoder::getInfo(const std::string &filepath, std::string &artist, st nlwarning("Unable to open: '%s'", filepath.c_str()); } +#if (NL_COMP_VC_VERSION > 90) /* VS2008 does not have stdint.h */ else if (type_lower == "mp3") { CIFile ifile; @@ -156,6 +157,7 @@ bool IAudioDecoder::getInfo(const std::string &filepath, std::string &artist, st nlwarning("Unable to open: '%s'", filepath.c_str()); } +#endif else { nlwarning("Music file type unknown: '%s'", type_lower.c_str());