首页 > 解决方案 > 为什么 climit 有一次编译指示和 #ifndef gaurd

问题描述

climit

// climits standard header (core)

// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#pragma once
#ifndef _CLIMITS_
#define _CLIMITS_
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR

#include <limits.h>

#endif // _STL_COMPILER_PREPROCESSOR
#endif // _CLIMITS_

为什么有#ifndef _CLIMITS_如果已经使用#pragma once

标签: c++pragma

解决方案


推荐阅读