Building with GCC 10.2.1 fails due linking errors caused by having multiple definitions of the variables defined in the source/constants.h header file. Fix this by moving the variables definition to the source/constants.c file, to avoid the variables to be defined each time that the header is included. While being there, use a single variable instead of having one for each object that is added to the module.
6 lines
90 B
C
6 lines
90 B
C
#ifndef CONSTANTS_H
|
|
#define CONSTANTS_H
|
|
|
|
void define_constants(PyObject *module);
|
|
|
|
#endif
|