adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
610 stars 494 forks source link

cores/nRF5/common_func.h uses undefined size_t (missing stddef.h include in common_inc.h) #635

Closed seaeagle1 closed 3 years ago

seaeagle1 commented 3 years ago

Describe the bug While trying to compile a sketch using the nRFCrypto library, I got an error about undefined size_t types in cores/nRF5/common_func.h. nRFCrypto uses the cores/nRF5/common_inc.h header which includes stdint.h and stdbool.h before common_func.h but lacks the stddef.h that defines size_t. Adding this include here solves the problem.

Set up (mandatory)

hathach commented 3 years ago

Can you tell which specific sketch you are compiling

seaeagle1 commented 3 years ago

An example is the Bluefruit Clear Bonds example.

hathach commented 3 years ago

please try to update to latest BSP, I couldn't reproduce this

hathach commented 3 years ago

Closed since not reproducible