2
* sysdeps.h - System dependent definitions
4
* nspluginwrapper (C) 2005-2007 Gwenole Beauchesne
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
#if !defined(__STDC__) || (__STDC_VERSION__ < 199901L)
25
#error "Your compiler is not ISO. Get a real one."
30
/* XXX detect popen() et al. at configure time */
31
#define _XOPEN_SOURCE 600
40
// NSPluginWrapper paths and identification strings
41
#define NPW_CONNECTION_PATH "/org/wrapper/NSPlugins"
42
#define NPW_VIEWER_BASE "npviewer"
43
#define NPW_VIEWER NPW_VIEWER_BASE
44
#define NPW_WRAPPER_BASE "npwrapper"
45
#define NPW_WRAPPER NPW_WRAPPER_BASE ".so"
46
#define NPW_OLD_DEFAULT_PLUGIN_PATH NPW_LIBDIR "/" HOST_ARCH "/" NPW_WRAPPER
47
#define NPW_DEFAULT_PLUGIN_PATH NPW_LIBDIR "/" HOST_ARCH "/" HOST_OS "/" NPW_WRAPPER
48
#define NPW_PLUGIN_IDENT "NPW:" NPW_VERSION
49
#define NPW_PLUGIN_IDENT_SIZE 32
50
typedef struct __attribute__((packed)) {
51
char ident[NPW_PLUGIN_IDENT_SIZE];
58
#if defined(BUILD_XPCOM)
59
#define NPW_COMPONENT_NAME "XPCOM "
60
#elif defined(BUILD_WRAPPER)
61
#define NPW_COMPONENT_NAME "Wrapper"
62
#elif defined(BUILD_VIEWER)
63
#define NPW_COMPONENT_NAME "Viewer "
71
#ifndef __bool_true_false_are_defined
72
#define __bool_true_false_are_defined 1
84
#endif /* SYSDEPS_H */