Skip to content

Commit

Permalink
Fix include guard to fix isngle header
Browse files Browse the repository at this point in the history
The single header includes first mdspan.hpp and then mdspan, but pragma
once is remove. So we need to guard better - or we could try to fix the
script, but that might take longer.
  • Loading branch information
crtrott committed May 3, 2023
1 parent 3950fa1 commit 2b448c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/mdspan/mdspan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
//
//@HEADER

#pragma once
#ifndef MDSPAN_HPP_
#define MDSPAN_HPP_

#ifndef MDSPAN_IMPL_STANDARD_NAMESPACE
#define MDSPAN_IMPL_STANDARD_NAMESPACE Kokkos
Expand All @@ -36,3 +37,5 @@
#if MDSPAN_HAS_CXX_17
#include "../experimental/__p2630_bits/submdspan.hpp"
#endif

#endif // MDSPAN_HPP_

0 comments on commit 2b448c2

Please sign in to comment.