source: soft/giet_vm/applications/rosenfeld/nrc2/include/mypredef.h @ 798

Last change on this file since 798 was 772, checked in by meunier, 9 years ago
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File size: 1.6 KB
Line 
1/* ------------------ */
2/* --- mypredef.h --- */
3/* ------------------ */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8 */
9
10// see predef.sourceforge.net
11// for complete predef list
12
13
14#ifndef __MY_PREDEF_H__
15#define __MY_PREDEF_H__
16
17#ifdef __cplusplus
18#pragma message ("C++")
19extern "C" {
20#endif
21   
22#ifdef VERBOSE_PRAGMA
23//#pragma message ("- *** include mypredef.h ***")
24#endif
25
26// ------------------ //
27// -- Architecture -- //
28// ------------------ //
29
30#ifdef _ARCH_PPC
31#define myArch_Altivec
32#define myArch Altivec
33#endif
34   
35#if defined(_M_IX86) || defined(i386) || defined (__i386__) || defined (__x86_64) || defined (__x86_64__)
36#define myArch_SSE
37#define myArch SSE
38#endif
39
40#if defined(__THW_CBEA__)
41#define myArch_Cell
42#define myArch Cell
43#endif
44   
45// -------------- //   
46// -- Compiler -- //
47// -------------- //
48
49#ifdef _INTEL_COMPILER
50#define myCompiler_ICC
51#define myCompiler ICC
52#endif
53   
54#if defined (__xlc__) || defined(__XLC__)
55#define myCompiler_XLC
56#define myCompiler XLC
57#endif
58
59#ifdef _MSC_VER
60#define myCompiler_MSC
61#define myCompiler MSC
62#endif
63   
64#if !defined(myCompiler_ICC) && !defined(myCompiler_XLC) && !defined(myCompiler_MSC)
65#define myCompiler_GCC
66#endif
67// par defaut GCC est aussi defini lors de l'utilisation de ICC   
68
69// -------- //
70// -- OS -- //
71// -------- //
72
73#if defined(linux) || defined(__linux)
74#define myOS_Linux
75#define myOS Linux
76#endif
77
78#if defined(__APPLE__)
79#define myOS_MacOS
80#define myOS MacOS
81#endif
82   
83#if defined(WIN32) || defined(_WIN32)
84#define myOS_Windows
85#define myOS Windows
86#endif   
87   
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* __MY_PREDEF_H__ */
Note: See TracBrowser for help on using the repository browser.