aboutsummaryrefslogtreecommitdiff
path: root/src/unistr-fixed.h
blob: 601fb29d142532edb9108b2493d4f9d40160fe83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// This is a workaround fix for an issue on some systems that don't have `__GLIBC__` defined
// and run into problems with <unistr.h>

#pragma once

#ifndef __GLIBC__
#define __GLIBC__ 2
#include <unistr.h> // IWYU pragma: export
#undef __GLIBC__
#else
#include <unistr.h> // IWYU pragma: export
#endif