Skip to content

Commit

Permalink
netbsd: revert _ISOC99_SOURCE, add uchar.h condition; from Marc
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@72716 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
kberry committed Oct 31, 2024
1 parent eb771e7 commit 084f93b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 19 deletions.
13 changes: 13 additions & 0 deletions libs/icu/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2024-10-30 Karl Berry <[email protected]>

* icu-src/source/common/uposixdefs.h: undo #define of
_ISOC99_SOURCE on __NETBSD__, what was patch-19-netbsd,
now delete. (See TLpatches/ChangeLog).
* icu-src/source/common/unicode/ptypes.h [U_PLATFORM_IS_LINUX_BASED]:
add conditional for #include <uchar.h>.

2024-10-27 Karl Berry <[email protected]>

* Import 76.2.
(version.ac): update.

2023-12-22 Karl Berry <[email protected]>

* Import 74.2.
Expand Down
7 changes: 7 additions & 0 deletions libs/icu/TLpatches/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-10-30 Karl Berry <[email protected]>

*
* patch-19-netbsd: remove
Per Marc Baudoin,
https://tug.org/pipermail/tlbuild/2024q4/005581.html

2024-10-27 Karl Berry <[email protected]>

Update for icu-76.1.
Expand Down
12 changes: 12 additions & 0 deletions libs/icu/TLpatches/patch-18-uchar
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
From Marc Baudoin.
https://tug.org/pipermail/tlbuild/2024q4/005581.html

--- source/common/unicode/ptypes.h~ 2024-10-24 11:24:00.000000000 -0700
+++ source/common/unicode/ptypes.h 2024-10-30 17:25:22.442817993 -0700
@@ -57,5 +57,5 @@
// ICU4C must detect and deal with that.
#if !defined(__cplusplus) && !defined(U_IN_DOXYGEN)
-# if U_HAVE_CHAR16_T
+# if U_HAVE_CHAR16_T && U_PLATFORM_IS_LINUX_BASED
# include <uchar.h>
# else
14 changes: 0 additions & 14 deletions libs/icu/TLpatches/patch-19-netbsd

This file was deleted.

2 changes: 1 addition & 1 deletion libs/icu/icu-src/source/common/unicode/ptypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// implementations (looking at you, Apple, spring 2024) actually do this, so
// ICU4C must detect and deal with that.
#if !defined(__cplusplus) && !defined(U_IN_DOXYGEN)
# if U_HAVE_CHAR16_T
# if U_HAVE_CHAR16_T && U_PLATFORM_IS_LINUX_BASED
# include <uchar.h>
# else
typedef uint16_t char16_t;
Expand Down
4 changes: 0 additions & 4 deletions libs/icu/icu-src/source/common/uposixdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,4 @@
#define _POSIX_C_SOURCE 200809L
#endif

#if defined(__cplusplus) && defined(__NetBSD__)
#define _ISOC99_SOURCE
#endif

#endif /* __UPOSIXDEFS_H__ */

0 comments on commit 084f93b

Please sign in to comment.