VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_vbox.cfg@ 102226

Last change on this file since 102226 was 102226, checked in by vboxsync, 15 months ago

libs/xpcom: Remove individual *.cfg files and merge relevant stuff into vbox.cfg, bugref:10545

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is the Netscape Portable Runtime (NSPR).
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-2000
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 * innotek
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39#ifndef nspr_vboxcfg___
40#define nspr_vboxcfg___
41
42#include <iprt/cdefs.h>
43
44#ifdef RT_LITTLE_ENDIAN
45#undef IS_BIG_ENDIAN
46# define IS_LITTLE_ENDIAN 1
47#elif defined(RT_BIG_ENDIAN)
48# undef IS_LITTLE_ENDIAN
49# define IS_BIG_ENDIAN 1
50#else
51# error "Unknown endianess"
52#endif
53
54#define HAVE_LONG_LONG
55
56#define PR_BYTES_PER_BYTE 1
57#define PR_BYTES_PER_SHORT 2
58#define PR_BYTES_PER_INT 4
59#define PR_BYTES_PER_INT64 8
60#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64)
61# define PR_BYTES_PER_LONG 8
62#else
63# define PR_BYTES_PER_LONG 4
64#endif
65#define PR_BYTES_PER_FLOAT 4
66#define PR_BYTES_PER_DOUBLE 8
67
68#define PR_BITS_PER_BYTE 8
69#define PR_BITS_PER_SHORT 16
70#define PR_BITS_PER_INT 32
71#define PR_BITS_PER_INT64 64
72#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64)
73# define PR_BITS_PER_LONG 64
74#else
75# define PR_BITS_PER_LONG 32
76#endif
77#define PR_BITS_PER_FLOAT 32
78#define PR_BITS_PER_DOUBLE 64
79
80#define PR_BITS_PER_BYTE_LOG2 3
81#define PR_BITS_PER_SHORT_LOG2 4
82#define PR_BITS_PER_INT_LOG2 5
83#define PR_BITS_PER_INT64_LOG2 6
84#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64)
85# define PR_BITS_PER_LONG_LOG2 6
86#else
87# define PR_BITS_PER_LONG_LOG2 5
88#endif
89#define PR_BITS_PER_FLOAT_LOG2 5
90
91#ifndef XP_UNIX
92# define XP_UNIX
93#endif
94
95#ifdef RT_OS_DARWIN
96# define DARWIN
97#elif defined(RT_OS_FREEBSD)
98# define FREEBSD
99#elif defined(RT_OS_LINUX)
100# define LINUX
101#elif defined(RT_OS_NETBSD)
102# define NETBSD
103#elif defined(RT_OS_OPENBSD)
104# define OPENBSD
105#elif defined(RT_OS_SOLARIS)
106# define SOLARIS
107#else
108# error "Define the correct platform identifier / Port me."
109#endif
110
111#endif /* !nspr_vboxcfg___ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette