Skip to content
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

BUG: Reorder extern "C" to only apply to function declarations in npy_math.h #21951

Merged
merged 1 commit into from Jul 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions numpy/core/include/numpy/npy_math.h
@@ -1,10 +1,6 @@
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_
#define NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <numpy/npy_common.h>

#include <math.h>
Expand All @@ -21,6 +17,10 @@ extern "C" {
#endif


#ifdef __cplusplus
extern "C" {
#endif

/*
* NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99
* for INFINITY)
Expand Down