[packages/jxrlib] - fix for using headers with -DNO_WINDOWS

qboosh qboosh at pld-linux.org
Sun Sep 20 13:10:46 CEST 2026


commit 1eb40a949bfcfd837839e49115269a9f56e56a35
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 20 13:10:55 2026 +0200

    - fix for using headers with -DNO_WINDOWS

 jxrlib-no-windows.patch | 21 +++++++++++++++++++++
 jxrlib.spec             |  2 ++
 2 files changed, 23 insertions(+)
---
diff --git a/jxrlib.spec b/jxrlib.spec
index cb49df6..b1954c5 100644
--- a/jxrlib.spec
+++ b/jxrlib.spec
@@ -12,6 +12,7 @@ Source0:	https://github.com/4creators/jxrlib/archive/v%{gitref}/%{name}-%{gitref
 # Source0-md5:	33d686fdf81e235cd8581c653dafffd6
 Source1:	%{name}-CMakeLists.txt
 Patch0:		%{name}-warnings.patch
+Patch1:		%{name}-no-windows.patch
 # originally https://jxrlib.codeplex.com/ but no longer available
 URL:		https://github.com/4creators/jxrlib
 BuildRequires:	cmake >= 2.8
@@ -43,6 +44,7 @@ Pliki nagłówkowe biblioteki JXR.
 %prep
 %setup -q -n %{name}-%{gitref}
 %patch -P0 -p1
+%patch -P1 -p1
 
 cp -p %{SOURCE1} CMakeLists.txt
 
diff --git a/jxrlib-no-windows.patch b/jxrlib-no-windows.patch
new file mode 100644
index 0000000..37a2370
--- /dev/null
+++ b/jxrlib-no-windows.patch
@@ -0,0 +1,21 @@
+Fix compiling library users with -DNO_WINDOWS
+--- jxrlib-2019.10.9/common/include/wmspecstring.h.orig	2017-06-15 19:20:48.000000000 +0200
++++ jxrlib-2019.10.9/common/include/wmspecstring.h	2026-09-20 13:05:35.670944201 +0200
+@@ -29,7 +29,7 @@
+ #ifndef _WMSPECSTRING_H_
+ #define _WMSPECSTRING_H_
+ 
+-#if (!defined UNDER_CE && !defined NO_WINDOWS && !defined SPECSTRINGS_H)
++#if (!defined UNDER_CE && !defined SPECSTRINGS_H)
+ #define SPECSTRINGS_H
+ /*************************************************************************
+ * See specstrings_strict.h for documentation of all user visible macros.
+@@ -334,7 +334,7 @@ void __pfx_assume(int, const char *);
+ 
+ // Some CE versions don't have specstrings.h, some have very old version without
+ // __specstrings defined. So we handle CE separately in wmasalce.h
+-#if defined(UNDER_CE) || defined(NO_WINDOWS)
++#if defined(UNDER_CE)
+   #include "wmspecstringce.h"
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jxrlib.git/commitdiff/b7af0e140d497adfe6a976e46caf11f619ea4d3e



More information about the pld-cvs-commit mailing list