Skip to content

Commit 09046ba

Browse files
committed
Zend/zend_sort: include cleanup
Add missing #include lines to the header, so it can always be included without figuring out its header dependencies.
1 parent ced3dd4 commit 09046ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Zend/zend_sort.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
+----------------------------------------------------------------------+
1818
*/
1919

20-
#include "zend.h"
2120
#include "zend_sort.h"
22-
#include <limits.h>
2321

2422
static inline void zend_sort_2(void *a, void *b, compare_func_t cmp, swap_func_t swp) /* {{{ */ {
2523
if (cmp(a, b) > 0) {

Zend/zend_sort.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#ifndef ZEND_SORT_H
2121
#define ZEND_SORT_H
2222

23+
#include "zend_portability.h" // for BEGIN_EXTERN_C
24+
#include "zend_types.h" // for compare_func_t, swap_func_t
25+
2326
BEGIN_EXTERN_C()
2427
ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
2528
ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);

0 commit comments

Comments
 (0)