FireSTARR
Loading...
Searching...
No Matches
unstable.h
1/* Copyright (c) Queen's Printer for Ontario, 2020. */
2/* Copyright (c) His Majesty the King in Right of Canada as represented by the Minister of Natural Resources, 2024-2025. */
3
4/* SPDX-License-Identifier: AGPL-3.0-or-later */
5
6// Provides wrappers around functions that have different results when using
7// different optimization flags, so they can be compiled with the same
8// flags in release and debug mode to avoid changing the outputs.
9#pragma once
10
11#ifdef _WIN32
12#pragma comment(lib, "Ws2_32.Lib")
13#pragma comment(lib, "Crypt32.Lib")
14#endif
15
19using MathSize = double;
20
21MathSize _cos(double angle) noexcept;
22MathSize _sin(double angle) noexcept;