Skip to content

Drop superfluous LONG_MAX/LONG_MIN fallback definitions #15667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions Zend/zend_portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,6 @@ char *alloca();
# define ZTS_V 0
#endif

#ifndef LONG_MAX
# define LONG_MAX 2147483647L
#endif

#ifndef LONG_MIN
# define LONG_MIN (- LONG_MAX - 1)
#endif

#define MAX_LENGTH_OF_DOUBLE 32

#undef MIN
Expand Down
4 changes: 0 additions & 4 deletions Zend/zend_strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ static double private_mem[PRIVATE_mem], *pmem_next = private_mem;
#define DBL_MAX 1.7014118346046923e+38
#endif

#ifndef LONG_MAX
#define LONG_MAX 2147483647
#endif

#else /* ifndef Bad_float_h */
#include "float.h"
#endif /* Bad_float_h */
Expand Down
5 changes: 0 additions & 5 deletions ext/bcmath/libbcmath/src/bcmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ typedef struct bc_struct {
#define MAX(a, b) ((a)>(b)?(a):(b))
#define MIN(a, b) ((a)>(b)?(b):(a))

#ifndef LONG_MAX
#define LONG_MAX 0x7fffffff
#endif


/* Function Prototypes */

void bc_init_numbers(void);
Expand Down
8 changes: 0 additions & 8 deletions main/php.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,6 @@ typedef unsigned int socklen_t;

#include <limits.h>

#ifndef LONG_MAX
#define LONG_MAX 2147483647L
#endif

#ifndef LONG_MIN
#define LONG_MIN (- LONG_MAX - 1)
#endif

#ifndef INT_MAX
#define INT_MAX 2147483647
#endif
Expand Down
Loading