Removed LZMA "Windows.h" capitalized file name workaround used to cross compile Windows binaries from Linux hosts.

This breaks compiling windows binaries if the underlaying filesystem is not case sensitive. An example would be using /mnt/c folder under WSL.
Any update on the LZMA SDK needs to be post processed with this command: sed -i 's/<Windows.h>/<windows.h>/' deps/LZMA-SDK/C/*.c deps/LZMA-SDK/C/*.h
This commit is contained in:
Jens Steube 2021-06-25 20:30:26 +02:00
parent 5194beb6f2
commit b30d55c5d9
6 changed files with 6 additions and 26 deletions

View File

@ -6,7 +6,7 @@
#include <stdio.h>
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#endif
#include <stdlib.h>

View File

@ -217,7 +217,7 @@ BoolInt CPU_Is_InOrder()
}
#if !defined(MY_CPU_AMD64) && defined(_WIN32)
#include <Windows.h>
#include <windows.h>
static BoolInt CPU_Sys_Is_SSE_Supported()
{
OSVERSIONINFO vi;
@ -275,7 +275,7 @@ BoolInt CPU_IsSupported_SHA()
// #include <stdio.h>
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#endif
BoolInt CPU_IsSupported_VAES_AVX2()
@ -327,7 +327,7 @@ BoolInt CPU_IsSupported_PageGB()
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
BoolInt CPU_IsSupported_CRC32()
{ return IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE) ? 1 : 0; }

View File

@ -5,7 +5,7 @@
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#include "DllSecur.h"

View File

@ -5,7 +5,7 @@
#define __7Z_THREADS_H
#ifdef _WIN32
#include <Windows.h>
#include <windows.h>
#else
#if !defined(__APPLE__) && !defined(_AIX)

View File

@ -1,15 +0,0 @@
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _WINDOWS_H
#define _WINDOWS_H
// This is a workaround for files asking to include Windows.h instead of windows.h
// The problem is that MinGW provides only windows.h
// LZMA SDK will fail to cross compile for Windows on Linux
#include <windows.h>
#endif // _WINDOWS_H

View File

@ -254,11 +254,6 @@ ifeq ($(USE_SYSTEM_LZMA),1)
LFLAGS += -llzmasdk
endif
## LZMA workaround for MSYS2
ifeq ($(USE_SYSTEM_LZMA),0)
CFLAGS += -Iinclude/workarounds
endif
# ZLIB
CFLAGS += -I$(DEPS_ZLIB_PATH) -I$(DEPS_ZLIB_PATH)/contrib
ifeq ($(USE_SYSTEM_ZLIB),1)