Changeset 1601


Ignore:
Timestamp:
01/22/12 06:44:06 (16 months ago)
Author:
philmoz
Message:

Fix compile error if OPT_EDGEOVERLAY not defined (thx mlands).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/modules.c

    r1569 r1601  
    9999/************* DYNAMIC LIBRARY EDGE OVERLAY ******/ 
    100100 
    101 #ifdef OPT_EDGEOVERLAY 
    102  
    103 #define MODULE_NAME_EDGEOVR "edgeovr.flt" 
    104  
    105101// Storage and interface for edge overlay 'image' buffer. 
    106102// This is so the previous overlay can survive if the module gets unloaded 
     103// (Need these for the module export list, even if OPT_EDGEOVERLAY is not defined). 
    107104static void* saved_edgebuf = 0; 
    108105static int saved_edgestate = 0; 
     106 
    109107void module_restore_edge(void **buf, int *state) { *buf = saved_edgebuf; *state = saved_edgestate; } 
    110108void module_save_edge(void* buf, int state)      { saved_edgebuf = buf; saved_edgestate = state; } 
     109 
     110#ifdef OPT_EDGEOVERLAY 
     111 
     112#define MODULE_NAME_EDGEOVR "edgeovr.flt" 
    111113 
    112114struct libedgeovr_sym* libedgeovr; 
Note: See TracChangeset for help on using the changeset viewer.