c11/threads: don't include assert.h if the assert macro is already defined
[mesa.git] / include / c11 / threads_win32.h
index d4c2a72d27718b3be79ac6328239e5dcb504801b..5298a84321d21f9ea8ee69144f700d84d997d85d 100644 (file)
@@ -26,7 +26,9 @@
  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
+#ifndef assert
 #include <assert.h>
+#endif
 #include <limits.h>
 #include <errno.h>
 #include <process.h>  // MSVCRT