mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
[Android] Add conditionals
This commit is contained in:
parent
d236ebf2dd
commit
cbb10c4ace
5 changed files with 6 additions and 6 deletions
|
@ -41,7 +41,7 @@ struct CalculatorManager_CreateParams
|
|||
GetCEngineStringFunc GetCEngineString;
|
||||
};
|
||||
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__)
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__) || defined(__ANDROID__)
|
||||
#define DLL_EXPORT
|
||||
#else
|
||||
#define DLL_EXPORT __declspec(dllexport)
|
||||
|
|
|
@ -14,7 +14,7 @@ static constexpr size_t SERIALIZED_NUMBER_MINSIZE = 3;
|
|||
|
||||
// Converts Memory Command enum value to unsigned char,
|
||||
// while ignoring Warning C4309: 'conversion' : truncation of constant value
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__)
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__) || defined(__ANDROID__)
|
||||
#define MEMORY_COMMAND_TO_UNSIGNED_CHAR(c) static_cast<unsigned char>(c)
|
||||
#else
|
||||
#define MEMORY_COMMAND_TO_UNSIGNED_CHAR(c) __pragma(warning(push)) __pragma(warning(disable : 4309)) static_cast<unsigned char>(c) __pragma(warning(pop))
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include "Ratpack/CalcErr.h"
|
||||
#include <stdexcept> // for std::out_of_range
|
||||
|
||||
#if !defined(__EMSCRIPTEN__) && !defined(__APPLE__)
|
||||
#if !defined(__EMSCRIPTEN__) && !defined(__APPLE__) && !defined(__ANDROID__)
|
||||
#include <winerror.h>
|
||||
#include <sal.h> // for SAL
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__)
|
||||
#if defined(__EMSCRIPTEN__) || defined(__APPLE__) || defined(__ANDROID__)
|
||||
|
||||
#define HRESULT long
|
||||
#define _In_opt_
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#if !defined(__EMSCRIPTEN__) && !defined(__APPLE__)
|
||||
#if !defined(__EMSCRIPTEN__) && !defined(__APPLE__) && !defined(__ANDROID__)
|
||||
#include <ppltasks.h>
|
||||
#include <winerror.h>
|
||||
#include <intsafe.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue