FreeWRL / FreeX3D 4.3.0
system.h
1
2/****************************************************************************
3 This file is part of the FreeWRL/FreeX3D Distribution.
4
5 Copyright 2009 CRC Canada. (http://www.crc.gc.ca)
6
7 FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 FreeWRL/FreeX3D is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with FreeWRL/FreeX3D. If not, see <http://www.gnu.org/licenses/>.
19****************************************************************************/
20
21
22/* put a string on the console. This is fork'd by FreeWRL for error messages,
23 * because when running within an HTML browser, error messages to the command
24 * line get lost.
25 */
26
27#ifndef FREEWRL_MESSAGE_SYSTEM_H
28#define FREEWRL_MESSAGE_SYSTEM_H
29
30#if STDC_HEADERS
31# include <stdio.h>
32# include <stdlib.h>
33# include <string.h>
34#else
35# if !HAVE_STRCHR
36# define strchr index
37# define strrchr rindex
38# endif
39char *strchr (), *strrchr ();
40# if !HAVE_MEMCPY
41# define memcpy(d, s, n) bcopy ((s), (d), (n))
42# define memmove(d, s, n) bcopy ((s), (d), (n))
43# endif
44#endif
45
46#if HAVE_UNISTD_H
47# include <sys/types.h>
48# include <unistd.h>
49#endif
50
51#if HAVE_SYS_STAT_H
52# include <sys/stat.h>
53#endif
54
55
56// OLD_IPHONE_AQUA #if !defined(TARGET_AQUA)
57#include <X11/Intrinsic.h>
58#include <X11/StringDefs.h>
59#include <X11/Xaw/AsciiText.h>
60#include <X11/Xaw/Box.h>
61#include <X11/Xaw/Command.h>
62#include <X11/Xaw/Dialog.h>
63#include <X11/Xaw/MenuButton.h>
64#include <X11/Xaw/Paned.h>
65#include <X11/Xaw/SimpleMenu.h>
66#include <X11/Xaw/SmeBSB.h>
67#include <X11/Xaw/SmeLine.h>
68#include <X11/Xaw/Sme.h>
69// OLD_IPHONE_AQUA #endif
70
71#endif /* FREEWRL_MESSAGE_SYSTEM_H */