chiark / gitweb /
add missing Windows exporting junk for nlopt_algorithm_name; thanks to Ofek Shilon...
[nlopt.git] / api / nlopt.h
index d928a470566a750508b7a9f7c016b07805371d77..2e5fc4ba63b9a444bf2d98aaee044584c033b037 100644 (file)
@@ -146,7 +146,7 @@ typedef enum {
      NLOPT_NUM_ALGORITHMS /* not an algorithm, just the number of them */
 } nlopt_algorithm;
 
-extern const char *nlopt_algorithm_name(nlopt_algorithm a);
+NLOPT_EXTERN(const char *) nlopt_algorithm_name(nlopt_algorithm a);
 
 typedef enum {
      NLOPT_FAILURE = -1, /* generic failure code */