Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/libxls/xls.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
#ifndef XLS_INCLUDE
#define XLS_INCLUDE

/* readxl modification: process <stdint.h> in the global namespace, not inside
* namespace xls. Otherwise, on libcs (e.g. musl/Alpine) where <stdint.h> has
* not been transitively pre-loaded by other system or vendored headers, its
* typedefs (int64_t etc.) end up trapped in xls:: when libxls is consumed
* from C++ code. See readxl issue #775. */
/* readxl modification: process these headers in the global namespace, not inside
* namespace xls. Otherwise, on libcs (e.g. musl/Alpine) where these headers have
* not been transitively pre-loaded by other system or vendored headers, their
* typedefs (int64_t, gid_t, uid_t etc.) end up trapped in xls:: when libxls is
* consumed from C++ code. See readxl issues #775 and #790. */
#include <stdint.h>
#include <sys/types.h>

#ifdef __cplusplus
namespace xls {
Expand Down
Loading