Newer
Older
libkc / modules / include / kc.h
/**
 * @file kc.h
 * @brief Kantan C Library 共通ヘッダファイル。
 * @copyright  2001 - 2023  Nomura Kei
 * @depends
 *	kc_windows.h
 */
#ifndef KC_H
#define KC_H

/**
 * 指定された変数が未使用であることを明示します。
 * @param val 未使用変数
 */
#define UNUSED_VARIABLE(val) (void)(val)

#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
// For C11
#include <stddef.h>
#include <stdbool.h>

#elif defined(__cplusplus) && (__cplusplus >= 201703L)
// For C++17
#include <cstddef>
#include <utility>

#else
// =============================================================================
//  C11, C++17 より古い場合は、ERROR
// =============================================================================
#error "supports C11, C++17 or later"

#endif
#include <kc_windows.h>
#endif // KC_H