Changeset 21769 for branches


Ignore:
Timestamp:
Oct 31, 2011, 9:26:26 PM (14 years ago)
Author:
dmik
Message:

initdll: Make default DLL_Init()/Term() implementations weak.

This is necessary so that global definitions can override them
(instead of resulting in duplicate symbols).

Location:
branches/gcc-kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/include/initdll.h

    r21733 r21769  
    1010
    1111#include <odin.h>
     12
     13#ifndef MAYBE_WEAK
     14#define MAYBE_WEAK
     15#endif
    1216
    1317/**
     
    3034 * @return Exit list order on success or -1 to indicate a failure.
    3135 */
    32 ULONG SYSTEM DLL_Init(ULONG hModule);
     36ULONG SYSTEM DLL_Init(ULONG hModule) MAYBE_WEAK;
    3337
    3438/**
     
    4347 * @param hModule DLL module handle.
    4448 */
    45 void SYSTEM DLL_Term(ULONG hModule);
     49void SYSTEM DLL_Term(ULONG hModule) MAYBE_WEAK;
    4650
    4751/**
  • branches/gcc-kmk/src/initdll/initdll_default.cpp

    r21733 r21769  
    88#include <os2wrap.h>
    99
     10#define MAYBE_WEAK __attribute__((weak))
    1011#include <initdll.h>
    1112
Note: See TracChangeset for help on using the changeset viewer.