upx/src/stdcxx.h
2000-05-19 16:04:55 +00:00

84 lines
2.0 KiB
C++

/* stdcxx.h --
This file is part of the UPX executable compressor.
Copyright (C) 1996-2000 Markus Franz Xaver Johannes Oberhumer
Copyright (C) 1996-2000 Laszlo Molnar
UPX and the UCL library are free software; you can redistribute them
and/or modify them under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING.
If not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Markus F.X.J. Oberhumer Laszlo Molnar
markus.oberhumer@jk.uni-linz.ac.at ml1050@cdata.tvnet.hu
*/
#ifndef __UPX_STDCXX_H
#define __UPX_STDCXX_H
#ifdef __cplusplus
/*************************************************************************
// exceptions, RTTI
**************************************************************************/
#include <exception>
//#include <stdexcept>
#include <new>
#include <typeinfo>
/*************************************************************************
// STL
**************************************************************************/
#ifdef WANT_STL
#if defined(__linux__)
# define _NOTHREADS
#endif
#if defined(__DJGPP__) || defined(__MINGW32__) || defined(__sparc__)
# define __THROW_BAD_ALLOC throw bad_alloc()
# define __USE_MALLOC
# define enable upx_stl_enable
#endif
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4018 4100 4663)
#endif
#include <vector>
#ifdef _MSC_VER
# pragma warning(pop)
#endif
#endif /* WANT_STL */
using namespace std;
#endif /* __cplusplus */
#endif /* already included */
/*
vi:ts=4:et:nowrap
*/