1 /*========================== begin_copyright_notice ============================
2 
3 Copyright (C) 2019-2021 Intel Corporation
4 
5 SPDX-License-Identifier: MIT
6 
7 ============================= end_copyright_notice ===========================*/
8 
9 #ifndef __CPPCOMPILER_H__
10 #define __CPPCOMPILER_H__
11 
12 #if defined(_MSC_VER)
13     #define ALIGN( size )   __declspec(align(size))
14 #else
15 
16     #include <UFO/portable_compiler.h>
17     #include <UFO/fake_seh.h>
18 
19     #define ALIGN(size)     __attribute__((aligned(size)))
20 
21     #if NO_EXCEPTION_HANDLING
22       #define try         if (true)
23       #define catch(x)    if (false)
24     #endif
25 
26 #endif
27 
28 #endif // __CPPCOMPILER_H__
29