Skip to content

Commit cfd3033

Browse files
authored
Merge pull request #3305 from micromint/critical-cpp
Support building mbed_critical.c with C++ compiler
2 parents bd994b3 + 22c0e35 commit cfd3033

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/mbed_critical.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
/* Declare __STDC_LIMIT_MACROS so stdint.h defines UINT32_MAX when using C++ */
19+
#define __STDC_LIMIT_MACROS
1820
#include "platform/critical.h"
1921

2022
#include "cmsis.h"

0 commit comments

Comments
 (0)