Skip to content
Snippets Groups Projects
Commit b49bb2d7 authored by Rob Davies's avatar Rob Davies
Browse files

Avoid unintended macro expansion in KSORT_INIT_GENERIC

Netbsd's libc #defines uint16_t to __uint16_t (and similarly for
other stdint types).  This was expanded by KSORT_INIT_GENERIC()
resulting in functions being defined with slightly different names
compared to the ones produced by using KSORT_INIT() directly.
The names also no longer matched the results of expanding
ks_mergesort() and friends.

Fix this by adjusting where the underscore gets pasted into the
names.  This means KSORT_INIT_GENERIC can use the argument
in a token pasting operation, which prevents it from being
expanded.
parent 738c16d2
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment