Skip to content

Commit

Permalink
Drop redundant macro definitions from mbfl_defs.h
Browse files Browse the repository at this point in the history
These are defined by the standard include headers we already use.
These cause conflicts which cause compiler warnings on some toolchains
(see GH-17112).

Closes GH-17114.
  • Loading branch information
nielsdos committed Dec 11, 2024
1 parent 6e759e0 commit 75e7234
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ext/mbstring/libmbfl/mbfl/mbfl_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@
#ifndef MBFL_DEFS_H
#define MBFL_DEFS_H

#ifndef NULL
#ifdef __cplusplus
#define NULL (0L)
#else
#define NULL (void *)(0L)
#endif
#endif

#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)~0)
#endif

#ifdef _WIN32
#ifdef MBFL_DLL_EXPORT
#define MBFLAPI __declspec(dllexport)
Expand Down

0 comments on commit 75e7234

Please sign in to comment.