Commit 3b033588 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Dont include <stdatomic.h> when running FlexeLint

parent e94bcc96
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#ifndef VMB_H_INCLUDED #ifndef VMB_H_INCLUDED
#define VMB_H_INCLUDED #define VMB_H_INCLUDED
#if defined(HAVE_STDATOMIC_H) #if defined(HAVE_STDATOMIC_H) && !defined(__FLEXELINT__)
# include <stdatomic.h> # include <stdatomic.h>
# define VWMB() atomic_thread_fence(memory_order_release) # define VWMB() atomic_thread_fence(memory_order_release)
......
...@@ -7,6 +7,7 @@ if [ "x$1" = "x-ok" -a -f _.fl ] ; then ...@@ -7,6 +7,7 @@ if [ "x$1" = "x-ok" -a -f _.fl ] ; then
fi fi
flexelint \ flexelint \
-D__FLEXELINT__ \
../../flint.lnt \ ../../flint.lnt \
../flint.lnt \ ../flint.lnt \
flint.lnt \ flint.lnt \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment