Skip to content

Commit

Permalink
Removed redundant preprocessor guards for the minimum C++ language ve…
Browse files Browse the repository at this point in the history
…rsion; everything goes through `types.hpp` which has that guard
  • Loading branch information
eyalroz committed Mar 10, 2024
1 parent df35acb commit b5eb7d0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/cuda/api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
#ifndef CUDA_API_WRAPPERS_HPP_
#define CUDA_API_WRAPPERS_HPP_

#if (__cplusplus < 201103L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L))
#error "The CUDA API headers can only be compiled with C++11 or a later version of the C++ language standard"
#endif

#include "api/types.hpp"
#include "api/pci_id.hpp"
#include "api/constants.hpp"
Expand Down
4 changes: 0 additions & 4 deletions src/cuda/nvtx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
#ifndef CUDA_NVTX_WRAPPERS_HPP_
#define CUDA_NVTX_WRAPPERS_HPP_

#if (__cplusplus < 201103L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L))
#error "The CUDA API headers can only be compiled with C++11 or a later version of the C++ language standard"
#endif

#include "nvtx/profiling.hpp"

#endif // CUDA_NVTX_WRAPPERS_HPP_
4 changes: 0 additions & 4 deletions src/cuda/rtc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
#ifndef CUDA_NVRTC_WRAPPERS_HPP_
#define CUDA_NVRTC_WRAPPERS_HPP_

#if (__cplusplus < 201103L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L))
#error "The CUDA API headers can only be compiled with C++11 or a later version of the C++ language standard"
#endif

#include "rtc/error.hpp"
#include "rtc/compilation_options.hpp"
#include "rtc/versions.hpp"
Expand Down

0 comments on commit b5eb7d0

Please sign in to comment.