summaryrefslogtreecommitdiff
path: root/ACE/ace/config-vxworks.h
blob: e9b35930a2798fa2dd9739ddb567710c9e4484d6 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//* -*- C++ -*- */
// The following configuration file is designed to work for VxWorks
// Based on ACE_VXWORKS it will select the correct config file

#ifndef ACE_CONFIG_VXWORKS_H
#define ACE_CONFIG_VXWORKS_H
#include /**/ "ace/pre.h"

// If ACE_VXWORKS is not defined try to figure out the VxWorks version
#if !defined (ACE_VXWORKS)
# include "vxWorks.h"
# if !defined (_WRS_VXWORKS_MAJOR) && !defined (_WRS_VXWORKS_MINOR)
#  error You must define ACE_VXWORKS
# else
#  if (_WRS_VXWORKS_MAJOR == 6)
#   if (_WRS_VXWORKS_MINOR == 0)
#    define ACE_VXWORKS 0x600
#   elif (_WRS_VXWORKS_MINOR == 1)
#    define ACE_VXWORKS 0x610
#   elif (_WRS_VXWORKS_MINOR == 2)
#    define ACE_VXWORKS 0x620
#   elif (_WRS_VXWORKS_MINOR == 3)
#    define ACE_VXWORKS 0x630
#   elif (_WRS_VXWORKS_MINOR == 4)
#    define ACE_VXWORKS 0x640
#   elif (_WRS_VXWORKS_MINOR == 5)
#    define ACE_VXWORKS 0x650
#   elif (_WRS_VXWORKS_MINOR == 6)
#    define ACE_VXWORKS 0x660
#   elif (_WRS_VXWORKS_MINOR == 7)
#    define ACE_VXWORKS 0x670
#   elif (_WRS_VXWORKS_MINOR == 8)
#    define ACE_VXWORKS 0x680
#   elif (_WRS_VXWORKS_MINOR == 9)
#    define ACE_VXWORKS 0x690
#   endif
#  elif (_WRS_VXWORKS_MAJOR == 7)
#   define ACE_VXWORKS 0x700
#  endif
# endif
#endif /* ! ACE_VXWORKS */

#if (ACE_VXWORKS == 0x640)
# include "ace/config-vxworks6.4.h"
#elif (ACE_VXWORKS == 0x650)
# include "ace/config-vxworks6.5.h"
#elif (ACE_VXWORKS == 0x660)
# include "ace/config-vxworks6.6.h"
#elif (ACE_VXWORKS == 0x670)
# include "ace/config-vxworks6.7.h"
#elif (ACE_VXWORKS == 0x680)
# include "ace/config-vxworks6.8.h"
#elif (ACE_VXWORKS == 0x690)
# include "ace/config-vxworks6.9.h"
#elif (ACE_VXWORKS == 0x700)
# include "ace/config-vxworks7.0.h"
#else
# error Unknown or unsupported VxWorks version
#endif

// Adapt to system argument changes added at VxWorks 6.9 and 64-bit.
// It would be nicer to typedef the data types, but without including the
// applicable VxWorks headers here, that doesn't work.
#if (ACE_VXWORKS < 0x690)
#  define ACE_VX_USR_ARG_T int
#  define ACE_VX_TASK_ID int
#  define ACE_VX_ARG_FORMAT "%x"
#  define ACE_VX_TASK_ID_ERROR ERROR
#else
#  define ACE_VX_USR_ARG_T _Vx_usr_arg_t
#  define ACE_VX_TASK_ID TASK_ID
#  ifdef _WRS_CONFIG_LP64
#    define ACE_VX_ARG_FORMAT "%lx"
#  else
#    define ACE_VX_ARG_FORMAT "%x"
#  endif
#  define ACE_VX_TASK_ID_ERROR TASK_ID_ERROR
#endif

#include /**/ "ace/post.h"
#endif /* ACE_CONFIG_VXWORKS_H */