chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fca8a2a
)
Use __inline for msvc
author
Julien Schueller
<schueller@phimeca.com>
Thu, 6 Dec 2018 18:53:50 +0000
(19:53 +0100)
committer
GitHub
<noreply@github.com>
Thu, 6 Dec 2018 18:53:50 +0000
(19:53 +0100)
src/util/qsort_r.c
patch
|
blob
|
history
diff --git
a/src/util/qsort_r.c
b/src/util/qsort_r.c
index bf98b6b2494436ea0083b69031db2da983b4682b..aa70a6d6025f5faf09f6205b5ed7b2e70df5eabe 100644
(file)
--- a/
src/util/qsort_r.c
+++ b/
src/util/qsort_r.c
@@
-22,6
+22,10
@@
#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 *);