Skip to content

Commit

Permalink
bugfix: Add missing C stdlib includes
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Nov 13, 2023
1 parent e6f71ac commit 72383bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pympivendor.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* Author: Lisandro Dalcin */
/* Contact: dalcinl@gmail.com */

#include <stdio.h>
#include <string.h>

static int PyMPI_Get_vendor(const char **vendor_name,
int *version_major,
int *version_minor,
Expand Down
2 changes: 2 additions & 0 deletions src/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ main(int argc, char **argv)
#if !defined(PYPY_VERSION)
#if PY_MAJOR_VERSION >= 3 && PY_VERSION_HEX < 0x03070000

#include <stdlib.h>
#include <string.h>
#include <locale.h>

static wchar_t **mk_wargs(int, char **);
Expand Down

0 comments on commit 72383bc

Please sign in to comment.