File tree Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -440,37 +440,37 @@ void QgsPgGeoprocessing::unload()
440
440
* of the plugin class
441
441
*/
442
442
// Class factory to return a new instance of the plugin class
443
- extern " C " QgisPlugin * classFactory (QgisInterface * qI)
443
+ QGISEXTERN QgisPlugin * classFactory (QgisInterface * qI)
444
444
{
445
445
return new QgsPgGeoprocessing (qI);
446
446
}
447
447
448
448
// Return the name of the plugin
449
- extern " C " QString name ()
449
+ QGISEXTERN QString name ()
450
450
{
451
451
return name_;
452
452
}
453
453
454
454
// Return the description
455
- extern " C " QString description ()
455
+ QGISEXTERN QString description ()
456
456
{
457
457
return description_;
458
458
}
459
459
460
460
// Return the type (either UI or MapLayer plugin)
461
- extern " C " int type ()
461
+ QGISEXTERN int type ()
462
462
{
463
463
return type_;
464
464
}
465
465
466
466
// Return the version number for the plugin
467
- extern " C " QString version ()
467
+ QGISEXTERN QString version ()
468
468
{
469
469
return version_;
470
470
}
471
471
472
472
// Delete ourself
473
- extern " C " void unload (QgisPlugin * p)
473
+ QGISEXTERN void unload (QgisPlugin * p)
474
474
{
475
475
delete p;
476
476
}
Original file line number Diff line number Diff line change @@ -826,38 +826,38 @@ void QgsGrassPlugin::unload()
826
826
* of the plugin class
827
827
*/
828
828
// Class factory to return a new instance of the plugin class
829
- extern " C " QgisPlugin * classFactory (QgisInterface * theQgisInterfacePointer)
829
+ QGISEXTERN QgisPlugin * classFactory (QgisInterface * theQgisInterfacePointer)
830
830
{
831
831
return new QgsGrassPlugin (theQgisInterfacePointer);
832
832
}
833
833
834
834
// Return the name of the plugin - note that we do not user class members as
835
835
// the class may not yet be insantiated when this method is called.
836
- extern " C " QString name ()
836
+ QGISEXTERN QString name ()
837
837
{
838
838
return QObject::tr (" GRASS" );
839
839
}
840
840
841
841
// Return the description
842
- extern " C " QString description ()
842
+ QGISEXTERN QString description ()
843
843
{
844
844
return QObject::tr (" GRASS layer" );
845
845
}
846
846
847
847
// Return the type (either UI or MapLayer plugin)
848
- extern " C " int type ()
848
+ QGISEXTERN int type ()
849
849
{
850
850
return QgisPlugin::UI;
851
851
}
852
852
853
853
// Return the version number for the plugin
854
- extern " C " QString version ()
854
+ QGISEXTERN QString version ()
855
855
{
856
856
return pluginVersion;
857
857
}
858
858
859
859
// Delete ourself
860
- extern " C " void unload (QgisPlugin * thePluginPointer)
860
+ QGISEXTERN void unload (QgisPlugin * thePluginPointer)
861
861
{
862
862
delete thePluginPointer;
863
863
}
Original file line number Diff line number Diff line change 27
27
#include " qgsfield.h"
28
28
#include " qgsrect.h"
29
29
30
+ #ifdef _MSC_VER
31
+ // enables prototype in GRASS headers
32
+ #define __STDC__ 1
33
+ #endif
34
+
30
35
extern " C" {
31
36
#include < grass/gis.h>
32
37
#include < grass/dbmi.h>
33
38
#include < grass/Vect.h>
34
39
}
35
40
41
+ #ifdef _MSC_VER
42
+ #undef __STDC__
43
+ #endif
44
+
36
45
#include " qgsgrass.h"
37
46
#include " qgsgrassprovider.h"
38
47
Original file line number Diff line number Diff line change 36
36
#include " qgsrect.h"
37
37
#include " qgsspatialrefsys.h"
38
38
39
+ #ifdef _MSC_VER
40
+ // enable grass prototypes
41
+ #define __STDC__ 1
42
+ #endif
43
+
39
44
extern " C" {
40
45
#include < grass/gprojects.h>
41
46
#include < grass/gis.h>
42
47
#include < grass/dbmi.h>
43
48
#include < grass/Vect.h>
44
49
}
45
50
51
+ #ifdef _MSC_VER
52
+ #undef __STDC__
53
+ #endif
54
+
46
55
#include " qgsgrass.h"
47
56
#include " qgsgrassprovider.h"
48
57
You can’t perform that action at this time.
0 commit comments