Fix issue #7, add #pragma once to generated header

This commit is contained in:
Markus Tavenrath 2016-02-17 16:17:23 +01:00
parent 193d723234
commit 9e777f256b
3 changed files with 7 additions and 1 deletions

View File

@ -1867,6 +1867,8 @@ int main( int argc, char **argv )
std::ofstream ofs( "vk_cpp.h" ); std::ofstream ofs( "vk_cpp.h" );
ofs << licenseHeader << std::endl; ofs << licenseHeader << std::endl;
ofs << std::endl << "#pragma once" << std::endl;
ofs << "#include <array>" << std::endl ofs << "#include <array>" << std::endl
<< "#include <cstdint>" << std::endl << "#include <cstdint>" << std::endl
<< "#include <cstring>" << std::endl << "#include <cstring>" << std::endl

1
tinyxml2 Submodule

@ -0,0 +1 @@
Subproject commit c8dad95d4488663c0381d502b3274df7dbf2fc55

View File

@ -24,8 +24,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#pragma once
#include <array> #include <array>
#include <stdint.h> #include <cstdint>
#include <cstring>
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#ifdef VKCPP_ENHANCED_MODE #ifdef VKCPP_ENHANCED_MODE
# include <vector> # include <vector>