Skip to content

Commit

Permalink
Remove #pragmas around CRCpp include
Browse files Browse the repository at this point in the history
Now that the CRCpp code itself is fixed, these are no longer required.
  • Loading branch information
asmaloney committed Jun 23, 2024
1 parent 8a4ef83 commit 98c7c0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. The format

### Fixed

- Update CRCpp to fix MSVC and MinGW warnings. ([#302](https://github.com/asmaloney/libE57Format/pull/302))
- Fix warnings about redefinition of `_LARGEFILE64_SOURCE` and `__LARGE64_FILES` ([#301](https://github.com/asmaloney/libE57Format/pull/301)) (Thanks Niklas!)
- Fix building with emscripten. (Note that the project doesn't officially support emscripten.) ([#288](https://github.com/asmaloney/libE57Format/pull/288))
- {standard conformance} CompressedVectors always write an index packet. This is required by the standard (9.3.5). ([#295](https://github.com/asmaloney/libE57Format/pull/295))
Expand Down
11 changes: 0 additions & 11 deletions src/CheckedFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,7 @@
#include <cstring>
#include <fcntl.h>

// This is fixed in a newer version of CRCpp.
// https://github.com/d-bahr/CRCpp/issues/17
// TODO: Remove when new CRCpp is released.
#if defined( _MSC_VER )
// Disable warning about "conditional expression is constant".
#pragma warning( push )
#pragma warning( disable : 4127 )
#endif
#include "CRC.h"
#if defined( _MSC_VER )
#pragma warning( pop )
#endif

#include "CheckedFile.h"
#include "StringFunctions.h"
Expand Down

0 comments on commit 98c7c0e

Please sign in to comment.