xorp

xorp_osdep_begin.h

00001 /* -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*- */
00002 /* vim:set sts=4 ts=8: */
00003 
00004 /*
00005  * Copyright (c) 2001-2011 XORP, Inc and Others
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License, Version
00009  * 2.1, June 1999 as published by the Free Software Foundation.
00010  * Redistribution and/or modification of this program under the terms of
00011  * any other version of the GNU Lesser General Public License is not
00012  * permitted.
00013  * 
00014  * This program is distributed in the hope that it will be useful, but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00017  * see the GNU Lesser General Public License, Version 2.1, a copy of
00018  * which can be found in the XORP LICENSE.lgpl file.
00019  * 
00020  * XORP, Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00021  * http://xorp.net
00022  */
00023 
00024 
00025 #ifndef __LIBXORP_XORP_OSDEP_BEGIN_H__
00026 #define __LIBXORP_XORP_OSDEP_BEGIN_H__
00027 
00028 #ifdef HOST_OS_WINDOWS
00029 
00030 #define USE_WIN_DISPATCHER 1
00031 #define WIN32_LEAN_AND_MEAN     /* Do not include most headers */
00032 
00033 #define _UNICODE            /* Use Unicode APIs */
00034 #define UNICODE
00035 
00036 #define FD_SETSIZE  1024        /* Default is 64, use BSD default */
00037 
00038 #define WINVER      0x502       /* Windows Server 2003 target */
00039 #define _WIN32_WINNT    0x502
00040 
00041 /*
00042  * Reduce the size of the Windows namespace, by leaving out
00043  * that which we do not need.
00044  * (Source: Windows Systems Programming 3e, Hart, 2004)
00045  */
00046 #define NOATOM
00047 #define NOCLIPBOARD
00048 #define NOCOMM
00049 #define NOCTLMGR
00050 #define NOCOLOR
00051 #define NODEFERWINDOWPOS
00052 #define NODESKTOP
00053 #define NODRAWTEXT
00054 #define NOEXTAPI
00055 #define NOGDICAPMASKS
00056 #define NOHELP
00057 #define NOICONS
00058 #define NOTIME
00059 #define NOIMM
00060 #define NOKANJI
00061 #define NOKERNEL
00062 #define NOKEYSTATES
00063 #define NOMCX
00064 #define NOMEMMGR
00065 #define NOMENUS
00066 #define NOMETAFILE
00067 #define NOMSG
00068 #define NONCMESSAGES
00069 #define NOPROFILER
00070 #define NORASTEROPS
00071 #define NORESOURCE
00072 #define NOSCROLL
00073 #define NOSERVICE
00074 #define NOSHOWWINDOW
00075 #define NOSOUND
00076 #define NOSYSCOMMANDS
00077 #define NOSYSMETRICS
00078 #define NOSYSPARAMS
00079 #define NOTEXTMETRIC
00080 #define NOVIRTUALKEYCODES
00081 #define NOWH
00082 #define NOWINDOWSTATION
00083 #define NOWINMESSAGES
00084 #define NOWINOFFSETS
00085 #define NOWINSTTLES
00086 #define OEMRESOURCE
00087 
00088 #endif /* HOST_OS_WINDOWS */
00089 
00090 #endif /* __LIBXORP_XORP_OSDEP_BEGIN_H__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations