Skip to content

Commit

Permalink
Add clarifying error when there's no C11 atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Nov 17, 2024
1 parent 7f56d10 commit 8f00f83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prof.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# pragma message("compiling as c++ is ill-advised")
#endif

#if defined(__STDC_NO_ATOMICS__)
# error This code needs C11 atomics support (if compiling on windows with MSVC, pass /experimental:c11atomics to cl.exe)
#endif

/* platform identification */
#if defined(_WIN32)
# define UTRACY_WINDOWS
Expand Down

0 comments on commit 8f00f83

Please sign in to comment.