diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-10 14:05:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-10 18:01:27 +0000 |
commit | 8646ab97dc37c0606b19057686bf3d610f9c15ee (patch) | |
tree | 17b3df6f5cf55cb1091c4aa70930dd415d9ea0e3 /include/wntgccx | |
parent | 09e9274fc080b471393b806617eb03124db67590 (diff) |
Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with
MinGW. Later, in LO times, this has been shifted to an attempt of cross-
compiling for Windows on Linux. That attempt can be considered abandoned, and
the relevant code rotting.
Due to this heritage, there are now three kinds of MinGW-specific code in LO:
* Code from the original OOo native Windows effort that is no longer relevant
for the LO cross-compilation effort, but has never been removed properly.
* Code from the original OOo native Windows effort that is re-purposed for the
LO cross-compilation effort.
* Code that has been added specifially for the LO cross-compilation effort.
All three kinds of code are removed.
(An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing
--with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.)
Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568
Reviewed-on: https://gerrit.libreoffice.org/34127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/wntgccx')
-rw-r--r-- | include/wntgccx/jni_md.h | 35 | ||||
-rw-r--r-- | include/wntgccx/sehandler.hxx | 46 |
2 files changed, 0 insertions, 81 deletions
diff --git a/include/wntgccx/jni_md.h b/include/wntgccx/jni_md.h deleted file mode 100644 index add4e2640d8a..000000000000 --- a/include/wntgccx/jni_md.h +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * 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/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -/* Fake jni_md.h for use when cross-compiling to Windows */ - -#ifndef INCLUDED_WNTGCCX_JNI_MD_H -#define INCLUDED_WNTGCCX_JNI_MD_H - -#define JNIEXPORT __declspec (dllexport) -#define JNIIMPORT __declspec (dllimport) -#define JNICALL - -typedef long jint; -typedef __int64 jlong; -typedef char jbyte; - -#endif // INCLUDED_WNTGCCX_JNI_MD_H - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/wntgccx/sehandler.hxx b/include/wntgccx/sehandler.hxx deleted file mode 100644 index e80a8283e429..000000000000 --- a/include/wntgccx/sehandler.hxx +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ - -/* From mingw-w64 excpt.h */ - -#ifndef INCLUDED_WNTGCCX_SEHANDLER_HXX -#define INCLUDED_WNTGCCX_SEHANDLER_HXX - -#if !defined( __MINGW32__ ) || !defined ( _WIN64 ) -#error This file should be included only in a 64-bit MinGW compilation -#endif - -#ifdef __try -#undef __try -#endif - -#if 0 -#define __try \ - __asm__ __volatile__ ("\t.l_startw:\n" \ - ); -#else -#define __try \ - if (true) -#endif - -#ifdef __except -#undef __except -#endif - -#if 0 -#define __except(exvalue) \ - __asm__ __volatile__ ("\tnop\n" \ - "\t.seh_handler __C_specific_handler, @except\n" \ - "\t.seh_handlerdata\n" \ - "\t.long 1\n" \ - "\t.rva .l_startw, .l_endw, " __MINGW64_STRINGIFY(exvalue) " ,.l_endw\n" \ - "\t.text\n" \ - "\t.l_endw: nop\n" \ - ); -#else -#define __except(exvalue) \ - if (false) -#endif - - -#endif // INCLUDED_WNTGCCX_SEHANDLER_HXX - |