;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;%  Copyright (C) 1988-2000 by Sybase, Inc. All                 %
;%  rights reserved. No part of this software may be reproduced %
;%  in any form or by any means - graphic, electronic or        %
;%  mechanical, including photocopying, recording, taping       %
;%  or information storage and retrieval systems - except       %
;%  with the written permission of Sybase, Inc.                 %
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;
; startup code for WATCOM C/C++32 DLL's
;
;       This must be assembled using one of the following commands:
;               wasm dstrt386 -ms -3r
;               wasm dstrt386 -ms -3s
;
        name    dstrt386
.386p
        assume  nothing

ifdef __NT__
entry_point = __LibMain@12
else
entry_point = __LibMain
endif
        extrn   entry_point     : near
        extrn   ___begtext      : near

_TEXT   segment use32 word public 'CODE'

        public  __DLLstart_

        assume  cs:_TEXT

__DLLstart_ proc near
__DLLstartw_:
        public  __DLLstartw_
ifdef __NT__
_DllMainCRTStartup@12:
        public  _DllMainCRTStartup@12:
_wDllMainCRTStartup@12:
        public  _wDllMainCRTStartup@12:
endif
        jmp     entry_point
        dd      ___begtext      ; reference module with segment definitions
;
; copyright message
;
        db      "WATCOM C/C++32 Run-Time system. "
        db      "(c) Copyright by Sybase, Inc. 1988-2000."
        db      " All rights reserved."
__DLLstart_ endp

_TEXT   ends

        end     __DLLstart_
