fix common export between optimization and optimization_f
[scilab.git] / scilab / modules / optimization / includes / common_structure_optimization.h
1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2013 - Scilab Enterprises - Cedric Delamarre
4  *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13  *
14  */
15 #ifndef __COMMOM_STRUCTURE_OPTIMIZATION_H__
16 #define __COMMOM_STRUCTURE_OPTIMIZATION_H__
17
18 #include "machine.h"
19 #include "dynlib_optimization.h"
20
21 typedef struct
22 {
23     int nizs, nrzs, ndzs;
24 } STR_NIRD;
25
26 typedef struct
27 {
28     double u1;
29     int nc;
30 } STR_FPRF2C;
31
32 typedef struct
33 {
34     char nomsub[80];
35 } STR_OPTIM;
36
37 typedef struct {
38     double t0, tf, dti, dtf, ermx;
39     int iu[5], nuc, nuv, ilin, nti, ntf, ny, nea, itmx, nex,
40         nob, ntob, ntobi, nitu, ndtu;
41 } STR_ICSEZ;
42
43
44 #ifdef _MSC_VER
45 OPTIMIZATION_IMPEXP STR_NIRD    C2F(nird);
46 OPTIMIZATION_IMPEXP STR_FPRF2C  C2F(fprf2c);
47 OPTIMIZATION_IMPEXP STR_OPTIM   C2F(optim);
48 OPTIMIZATION_IMPEXP STR_ICSEZ   C2F(icsez);
49
50 #else
51 #ifndef __OPTIMIZATION_GW_HXX__
52 extern STR_NIRD     C2F(nird);
53 extern STR_FPRF2C   C2F(fprf2c);
54 extern STR_OPTIM    C2F(optim);
55 extern STR_ICSEZ    C2F(icsez);
56 #else
57 STR_NIRD    C2F(nird);
58 STR_FPRF2C  C2F(fprf2c);
59 STR_OPTIM   C2F(optim);
60 STR_ICSEZ    C2F(icsez);
61 #endif
62 #endif
63 #endif /* !__COMMOM_STRUCTURE_OPTIMIZATION_H__ */