Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing include guards. Fixes a lot of compile issues. #39

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SimonCahill
Copy link

The headers provided are generally missing include guards.
This led to many compiler issues in a few projects.

I've added basic include guards, so this doesn't happen in future and ugly hacks like this aren't needed:

#ifndef GZIP_HPP_INCLUDED
#define GZIP_HPP_INCLUDED
#include "gzip/decompress.hpp"
#endif

Simon Cahill and others added 4 commits September 7, 2020 16:16
Fixed the Makefile generator so it can actually be used in Cmake projects without ruining everything and building tests which I don't need.

To use:

```
add_subdirectory(gzip-hpp)

target_link_libraries(
    mybin

    gzip-hpp
)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant