memory/mozalloc/msvc_throw_wrapper.h
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 07 Aug 2014 02:58:48 +0900
changeset 198218 b755c903799edb8caf35a8485d5f8400ee1a6449
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 1049247 - Remove app_libxul_static_dirs. r=mshal

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 * vim: sw=4 ts=4 et :
 */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef mozilla_msvc_throw_wrapper_h
#define mozilla_msvc_throw_wrapper_h

// Define our own _Throw because the Win2k CRT doesn't export it.
#  ifdef _EXCEPTION_
#    error "Unable to wrap _Throw(); CRT _Throw() already declared"
#  endif
#  define _Throw  mozilla_Throw
#  include <exception>

#endif  // ifndef mozilla_msvc_throw_wrapper_h