tools/platform.h

Go to the documentation of this file.
00001 ///
00002 /// \file       tools/platform.h
00003 ///             Platform-specific details for Barry tools
00004 ///
00005 
00006 /*
00007     Copyright (C) 2010-2012, Net Direct Inc. (http://www.netdirect.ca/)
00008     Copyright (C) 2010-2011, RealVNC Ltd.
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018 
00019     See the GNU General Public License in the COPYING file at the
00020     root directory of this project for more details.
00021 */
00022 
00023 #ifndef __BARRY_PLATFORM_H__
00024 #define __BARRY_PLATFORM_H__
00025 
00026 // All Windows specific detail
00027 #if defined( WIN32 )
00028 typedef void (*sighandler_t)(int);
00029 
00030 // All FreeBSD / BSD specific detail
00031 #elif defined( __FreeBSD__ )
00032 
00033 #include <signal.h>
00034 typedef sig_t sighandler_t;
00035 
00036 // All Mac OS X specific detail
00037 #elif defined( __APPLE__ ) && defined( __MACH__ )
00038 
00039 #include <signal.h>
00040 typedef sig_t sighandler_t;
00041 
00042 // All QNX specific detail
00043 #elif defined( __QNX__ )
00044 typedef void (*sighandler_t)(int signum);
00045 
00046 #endif
00047 
00048 #endif
00049