std_csetjmp.h revision 169691
16339Svaleriep// -*- C++ -*- forwarding header.
26339Svaleriep
36339Svaleriep// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
46339Svaleriep//
56339Svaleriep// This file is part of the GNU ISO C++ Library.  This library is free
66339Svaleriep// software; you can redistribute it and/or modify it under the
76339Svaleriep// terms of the GNU General Public License as published by the
86339Svaleriep// Free Software Foundation; either version 2, or (at your option)
96339Svaleriep// any later version.
106339Svaleriep
116339Svaleriep// This library is distributed in the hope that it will be useful,
126339Svaleriep// but WITHOUT ANY WARRANTY; without even the implied warranty of
136339Svaleriep// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
146339Svaleriep// GNU General Public License for more details.
156339Svaleriep
166339Svaleriep// You should have received a copy of the GNU General Public License along
176339Svaleriep// with this library; see the file COPYING.  If not, write to the Free
186339Svaleriep// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
196339Svaleriep// USA.
206339Svaleriep
216339Svaleriep// As a special exception, you may use this file as part of a free software
226339Svaleriep// library without restriction.  Specifically, if other files instantiate
236339Svaleriep// templates or use macros or inline functions from this file, or you compile
246339Svaleriep// this file and link it with other files to produce an executable, this
256339Svaleriep// file does not by itself cause the resulting executable to be covered by
266339Svaleriep// the GNU General Public License.  This exception does not however
276339Svaleriep// invalidate any other reasons why the executable file might be covered by
286339Svaleriep// the GNU General Public License.
296339Svaleriep
306339Svaleriep//
316339Svaleriep// ISO C++ 14882: 20.4.6  C library
326339Svaleriep//
336339Svaleriep
346339Svaleriep#ifndef _GLIBCXX_CSETJMP
356339Svaleriep#define _GLIBCXX_CSETJMP 1
366339Svaleriep
376339Svaleriep#pragma GCC system_header
386339Svaleriep
396339Svaleriep#include_next <setjmp.h>
406339Svaleriep
416339Svaleriep// Get rid of those macros defined in <setjmp.h> in lieu of real functions.
426339Svaleriep#undef longjmp
436339Svaleriep
446339Svaleriep// Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998
456339Svaleriep#ifndef setjmp
466339Svaleriep#define setjmp(env) std::setjmp (env)
476339Svaleriep#endif
486339Svaleriep
496339Svaleriep#endif
506339Svaleriep