Skip to content

Commit 47bbd27

Browse files
author
James William Pye
committed
Conditionally include stdint.h
Even if Python didn't find the header, it's still needed. If it's unavailable, the person performing compilation will need to get one. In 1.0, we may just include the win32 implementation as it's a bit of a pain to track down.
1 parent ade0422 commit 47bbd27

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

postgresql/protocol/optimized/module.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
* in each file.
1313
*/
1414
#include <Python.h>
15+
/*
16+
* If Python didn't find it, it won't include it.
17+
* However, it's quite necessary.
18+
*/
19+
#ifndef HAVE_STDINT_H
20+
#include <stdint.h>
21+
#endif
1522

1623
#define USHORT_MAX ((1<<16)-1)
1724
#define SHORT_MAX ((1<<15)-1)

0 commit comments

Comments
 (0)