chiark / gitweb /
Use __inline for msvc
authorJulien Schueller <schueller@phimeca.com>
Thu, 6 Dec 2018 18:53:50 +0000 (19:53 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Dec 2018 18:53:50 +0000 (19:53 +0100)
src/util/qsort_r.c

index bf98b6b2494436ea0083b69031db2da983b4682b..aa70a6d6025f5faf09f6205b5ed7b2e70df5eabe 100644 (file)
 #include "nlopt-util.h"
 #include <stdlib.h>
 
+#if defined(_MSC_VER)
+#define inline __inline
+#endif
+
 typedef int             cmp_t(void *, const void *, const void *);
 
 static inline char     *med3(char *, char *, char *, cmp_t *, void *);