forked from dsouzahansenfrancis/STBTLE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompiler.h
34 lines (30 loc) · 1.27 KB
/
compiler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/******************** (C) COPYRIGHT 2012 STMicroelectronics ********************
* File Name : compiler.h
* Author : AMS - HEA&RF BU
* Version : V1.0.0
* Date : 19-July-2012
* Description : Compiler-dependent macros.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#ifdef __ICCARM__
#define PACKED
#else
#ifdef __GNUC__
#define __packed
#define PACKED __attribute__((packed))
#else
/*#error "Use Failed Detecting Compiler define the packed macro"*/
#define PACKED
#define __packed
#endif
#endif
/* Change this define to 1 if zero-length arrays are not supported by your compiler. */
#define VARIABLE_SIZE 0
#endif /* DOXYGEN_SHOULD_SKIP_THIS */