Skip to content

Commit

Permalink
Removed the DENG_PLUGIN_GLOBAL macro
Browse files Browse the repository at this point in the history
With -rdynamic gone, this is no longer necessary.
  • Loading branch information
skyjake committed Jan 5, 2013
1 parent 5639cea commit 03551ba
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
10 changes: 2 additions & 8 deletions doomsday/engine/api/api_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,8 @@ extern "C" {

#define LIBDENG_PLUGINDESC "(" DOOMSDAY_NICENAME " Plugin)"

/**
* Use this for all global variables in plugins so that they will not be
* confused with engine's exported symbols.
*/
#define DENG_PLUGIN_GLOBAL(name) __DengPlugin_##name

#define MAX_HOOKS 16
#define HOOKF_EXCLUSIVE 0x01000000
#define MAX_HOOKS 16
#define HOOKF_EXCLUSIVE 0x01000000

typedef int (*pluginfunc_t) (void);
typedef int (*hookfunc_t) (int type, int parm, void *data);
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/wadmapconverter/include/wadmapconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "doomsday.h"
#include "id1map.h"

extern Id1Map* DENG_PLUGIN_GLOBAL(map);
extern Id1Map* map;

DENG_USING_API(Base);
DENG_USING_API(Material);
Expand Down
2 changes: 0 additions & 2 deletions doomsday/plugins/wadmapconverter/src/id1map_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "wadmapconverter.h"
#include <de/libdeng2.h>

#define map DENG_PLUGIN_GLOBAL(map)

size_t ElementSizeForMapLumpType(MapFormatId mapFormat, MapLumpType type)
{
switch(type)
Expand Down
1 change: 0 additions & 1 deletion doomsday/plugins/wadmapconverter/src/wadmapconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <de/Error>
#include <de/Log>

#define map DENG_PLUGIN_GLOBAL(map)
Id1Map* map;

/**
Expand Down

0 comments on commit 03551ba

Please sign in to comment.