adafruit-beaglebone-io-python/source/constants.h
Javier Martinez Canillas be710eaf9b
fix link error due multiple variables definitions
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.
2020-11-28 00:47:41 +01:00

6 lines
90 B
C

#ifndef CONSTANTS_H
#define CONSTANTS_H
void define_constants(PyObject *module);
#endif