mosra / magnum-integration

Integration libraries for the Magnum C++11 graphics engine
https://magnum.graphics/
Other
99 stars 44 forks source link

Redefinition errors including ImGuiIntegration/Context.hpp multiple times #50

Closed melix99 closed 5 years ago

melix99 commented 5 years ago

When including the ImGuiIntegration/Context.hpp multiple times (when for example there are two files that include ImGuiIntegration/Context.hpp and these files are included in another file) the compiler gives several redefinition errors. This is due to missing #pragma once or #ifndef/#define in the ImGuiIntegration/Context.hpp file.

mosra commented 5 years ago

Ugh. Sorry about that. All the headers guards were messed up for some reason, fixed in a3609bcf5fd32665db3b16b5c67cbfed6a5a7f8a.