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 phpGH-17112).
  • Loading branch information
nielsdos committed Dec 10, 2024
1 parent 1862aff commit 591c44e
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 591c44e

Please sign in to comment.