Skip to content

Commit

Permalink
Fix manually linking bit7z when enabling BIT7Z_AUTO_FORMAT
Browse files Browse the repository at this point in the history
Close issue #173
  • Loading branch information
rikyoz committed Oct 16, 2023
1 parent eb58cf1 commit 9fd6793
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/internal/formatdetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

#include "internal/formatdetect.hpp"

// Note: the formatdetect.hpp header must be included before this ifdef since the BIT7Z_AUTO_FORMAT
// flag might be manually specified in the bitdefines.hpp header (included by formatdetect.hpp).
#ifdef BIT7Z_AUTO_FORMAT

#include <algorithm>

#include "internal/formatdetect.hpp"

#if defined(BIT7Z_USE_NATIVE_STRING) && defined(_WIN32)
#include <cwctype> // for std::iswdigit
#else
Expand Down

0 comments on commit 9fd6793

Please sign in to comment.