avcodec/error_resilience: remove unused header
[ffmpeg.git] / libavutil / atomic_win32.h
index cf49c55..f729933 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <windows.h>
+#ifndef AVUTIL_ATOMIC_WIN32_H
+#define AVUTIL_ATOMIC_WIN32_H
 
-#include "atomic.h"
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
 
 #define avpriv_atomic_int_get atomic_int_get_win32
 static inline int atomic_int_get_win32(volatile int *ptr)
@@ -48,3 +50,5 @@ static inline void *atomic_ptr_cas_win32(void * volatile *ptr,
 {
     return InterlockedCompareExchangePointer(ptr, newval, oldval);
 }
+
+#endif /* AVUTIL_ATOMIC_WIN32_H */