Changeset 21299 for trunk/include


Ignore:
Timestamp:
Jun 16, 2009, 3:08:41 PM (16 years ago)
Author:
ydario
Message:

Header updates.

Location:
trunk/include
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/OS2WIN.H

    r10581 r21299  
    16281628HANDLE  OPEN32API O32_GetPMHandleFromGDIHandle(HGDIOBJ hGDI);
    16291629
     1630VOID OPEN32API _O32_GetStartupInfo(LPSTARTUPINFOA lpStartupInfo);
     1631
     1632inline VOID O32_GetStartupInfo(LPSTARTUPINFOA lpStartupInfo)
     1633{
     1634 USHORT sel = RestoreOS2FS();
     1635
     1636    _O32_GetStartupInfo(lpStartupInfo);
     1637    SetFS(sel);
     1638}
     1639
    16301640#endif    /* ifdef _OS2WIN_H */
  • trunk/include/initdll.h

    r10606 r21299  
    22#define __INITDLL_H__
    33
    4 #if (defined(__IBMCPP__) || defined(__IBMC__))
     4#if (defined(__IBMCPP__) || defined(__IBMC__) || defined(__INNOTEK_LIBC__))
    55
    66#define DLLENTRYPOINT_CCONV SYSTEM
     
    2525#define ctordtorTerm()  __ctordtorTerm(0)
    2626
     27#elif defined(__INNOTEK_LIBC__)
     28
     29extern void __ctordtorInit(void);
     30extern void __ctordtorTerm(void);
     31
    2732#else
    2833#error "Unknown compiler!"
    2934#endif
    3035
     36#ifndef __INNOTEK_LIBC__
    3137
    3238/*-------------------------------------------------------------------*/
     
    4248/*-------------------------------------------------------------------*/
    4349void _Optlink _CRT_term(void);
     50#endif // __INNOTEK_LIBC__
    4451
    4552
  • trunk/include/odin.h

    r9985 r21299  
    8484  #define WIN32API  __stdcall
    8585  #define WINAPI    __stdcall
    86   #define SYSTEM    CDECL
    8786  #define PASCAL    __stdcall
    8887  #define INLINE    __inline__
     
    9089  #define NONAMELESSUNION
    9190  #define NONAMELESSSTRUCT
     91  #ifdef __INNOTEK_LIBC__
     92  #define SYSTEM    _System
     93  #define APIENTRY  _System
     94  #else
     95  #define SYSTEM    CDECL
    9296  #undef  APIENTRY
    9397  #define APIENTRY  CDECL
     98  #endif
    9499
    95100#else
  • trunk/include/odin32.dbg.emx.mk

    r9876 r21299  
    5252AS     = alp
    5353LD     = gcc
    54 LD2    = link386
     54LD2    = gcc
    5555IMPLIB = implib
    5656ILIB   = emxomfar
     
    6767RCFLAGS          = -s -I. -I$(CPPMAIN)\include  -D__WIN32OS2__
    6868!ifdef WRC_PREFIX_RESOURCE
    69 RCFLAGS          = $(RCFLAGS) -p $(TARGET)
     69RCFLAGS          = $(RCFLAGS) -p _$(TARGET)
    7070!endif
    7171OS2RCFLAGS       = -r -n
     
    125125!else
    126126LDTARGETFLAGS    = -Zdll -Zso -Zsys
    127 LD2TARGETFLAGS   = /DLL
     127LD2TARGETFLAGS   = -Zdll
    128128!endif
    129129!ifdef NODEBUGINFO
    130130LDFLAGS          = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /exepack:2 /Nod" $(LDTARGETFLAGS) -s
    131131LDFLAGS_ODINCRT  = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /exepack:2     " $(LDTARGETFLAGS) -s
    132 LD2FLAGS         = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS)
     132#LD2FLAGS         = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /nodebug /nod $(LD2TARGETFLAGS)
     133LD2FLAGS         = -Zmap -s $(LD2TARGETFLAGS)
    133134LD2FLAGS_ODINCRT = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /nodebug      $(LD2TARGETFLAGS)
     135LD2FLAGS_ODINCRT         = -Zmap -s $(LD2TARGETFLAGS)
     136
    134137!else
    135138LDFLAGS          = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /exepack:2 /Nod" $(LDTARGETFLAGS) -g
    136139LDFLAGS_ODINCRT  = -Zmt -Zomf -Zmap -Zlinker "/MAP:FULL /Linenumbers /exepack:2     " $(LDTARGETFLAGS) -g
    137 LD2FLAGS         = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /debug /nod $(LD2TARGETFLAGS)
    138 LD2FLAGS_ODINCRT = /nologo /noe /map:full /NoIgnoreCase /Linenumbers /packcode /packdata /exepack:2 /debug      $(LD2TARGETFLAGS)
     140LD2FLAGS         = -g -Zomf -Zhigh-mem $(LD2TARGETFLAGS)
     141LD2FLAGS_ODINCRT = -g -Zomf -Zhigh-mem $(LD2TARGETFLAGS)
    139142!endif
    140143
  • trunk/include/odin32.post.emx.mk

    r6421 r21299  
    1 # $Id: odin32.post.emx.mk,v 1.13 2001-07-30 22:52:08 bird Exp $
     1# $Id: odin32.post.emx.mk,v 1.30 2003-10-26 01:47:51 bird Exp $
    22
    33#
     
    66# Common dll makefile rules (must be included at the last line of the makefile)
    77#
    8 
    9 #
    10 # This is shared with VAC3 cause there is only tree minor differences.
    11 #
    12 !include $(ODIN32_INCLUDE)/odin32.post.vac3.mk
     8# If ORGTARGET is defined it is used to generate the importlibrary.
     9#
     10# Define NOTEXPDEF to remove the $(TARGET).lib and $(TARGET)exp.def rules.
     11# Define EXETARGET to make an executable. (This also applies to odin32.mk.)
     12# Define LIBTARGET to make an internal library.
     13# Define LOCALCLEAN if only the local directory is to be clean.
     14# Define CLEAN2 to invoke a second clean rule named 'clean2'.
     15# Define NOCLEAN to exclude the clean rule. (Remember to make your own!)
     16#
     17# New style: (!defined OLD_STYLE)
     18# Define NO_ALL_RULE to not make default all rule.
     19# Define NO_LIB_RULE to not make default lib rule.
     20# Define NO_MAIN_RULE to not make default main target rule.
     21# Define NO_LNKFILE_RULE to not make default link-file rule.
     22# Define NO_DEP_RULE to not make dependencies rule.
     23# Define NO_CLEAN_RULE to not make clean rule (same as NOCLEAN - use this!).
     24# Define NO_INTERNAL_LIBS to not include libs rule for subdirectories.
     25# Define NO_MAIN_BIN_COPY to not copy the target and sym file to the main
     26#    binary directory. It is only copied to the compiler specific directory.
     27#    Main bin is /bin. Compiler specific bin is /bin/debug, /bin/debug.vac36, etc.
     28# Define ADDITIONAL_DEP to add dependencies rules.
     29# Define ADDITIONAL_ALL to add targets all should depend on.
     30#
     31# Define MAKEFILE if the name of the makefile isn't "makefile".
     32# Define DEFFILE to specify another file than $(TARGET).def or $(ORGTARGET).def.
     33#    Define this if your .exe file have a .def file.
     34# Define OS2RES as the names of the OS/2 .res file to create and link
     35#    with the target .dll or .exe.
     36# Define LIBS as a list of all the libraries to link
     37#    with the target .dll or .exe.
     38# Define SUBDIRS when you have subdirectories which should be made.
     39#    dep and lib supports this fully. The rule libs are added, since we assume you
     40#    makes internal libraries in the subdirectories. The libs rule is one of the
     41#    dependencies of the main target.
     42#
     43
     44# Sanity check
     45!ifndef ODIN32_LIB
     46!   error "ODIN32_LIB is not defined"
     47!endif ODIN32_LIB
     48!ifndef ODIN32_TOOLS
     49!   error "ODIN32_TOOLS is not defined"
     50!endif ODIN32_TOOLS
     51
     52
     53!ifndef TARGET_EXTENSION
     54!   ifdef LIBTARGET
     55TARGET_EXTENSION=lib
     56!    else
     57!       ifdef EXETARGET
     58TARGET_EXTENSION=exe
     59!       else
     60TARGET_EXTENSION=dll
     61!       endif
     62!   endif
     63!endif
     64
     65
     66!ifndef OLD_STYLE
     67
     68# Set default MAKEFILE if needed
     69!ifndef MAKEFILE
     70MAKEFILE = makefile
     71!endif
     72
     73# Set default ORGTARGET if needed.
     74!ifndef ORGTARGET
     75ORGTARGET=$(TARGET)
     76!endif
     77
     78# Set default DEFFILE if needed. (Required for both DLLs and EXEs!)
     79!ifndef DEFFILE
     80DEFFILE = $(ORGTARGET).def
     81!endif
     82!ifndef ORGDEFFILE
     83ORGDEFFILE = $(ORGTARGET).def
     84!endif
     85
     86# Set INTLIBS (interal) if SUBDIRS is defined and NO_INTERNAL_LIBS is undefined.
     87!ifdef SUBDIRS
     88!   ifndef NO_INTERNAL_LIBS
     89!       ifndef LIBTARGET
     90INTLIBS = libs
     91!       else
     92INTLIBS = libs_sub
     93!       endif
     94!   endif
     95!endif
     96
     97
     98!ifndef LIBTARGET
     99!ifndef EXETARGET
     100###############################################################################
     101# DLL Target
     102###############################################################################
     103
     104#
     105# Dll: All rule - build objs, target dll, copies target to bin and makes libs.
     106#
     107!ifndef NO_ALL_RULE
     108all:    $(OBJDIR) \
     109        $(INTLIBS) \
     110        $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION) \
     111        $(OBJDIR)\$(TARGET).sym \
     112        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
     113        $(ODIN32_BIN)\$(TARGET).sym \
     114        lib \
     115        $(ADDITIONAL_ALL)
     116!endif
     117
     118
     119#
     120# Dll: Lib rule - build importlibrary (and evt. other libs)
     121#
     122!ifndef NO_LIB_RULE
     123lib:    $(OBJDIR) \
     124        $(OBJDIR)\$(ORGTARGET).lib \
     125        $(ODIN32_LIB)\$(ORGTARGET).lib
     126!endif
     127
     128
     129#
     130# Dll: Main target rule - builds the target dll.
     131#
     132!ifndef NO_MAIN_RULE
     133$(OBJDIR)\$(TARGET).$(TARGET_EXTENSION): $(LIBS) $(OBJS) $(OS2RES) $(DEFFILE) $(OBJDIR)\bldlevel.$(ORGDEFFILE) $(OBJDIR)\$(TARGET).lrf
     134    $(CMDQD_WAIT)
     135    $(LD2) $(LD2FLAGS) $(OBJ_PROFILE) -o $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION) $(OBJS) $(LIB_PROFILE) $(LIBS) $(OBJDIR)\bldlevel.$(ORGDEFFILE)
     136
     137!ifdef OS2RES
     138    $(OS2RC) $(OS2RCLFLAGS) $(OS2RES) $@
     139!endif
     140!if !defined(DEBUG) && !defined(NO_LXLITE)
     141# remove all EAs from the file to prevent errors running LXLITE on
     142# a LAN server mounted JFS volume
     143    eautil $@ nul /s
     144    $(LXLITE) $@
     145!endif
     146!endif
     147
     148
     149#
     150# Dll: Linker file - creates the parameter file passed on to the linker.
     151#
     152!ifndef NO_LNKFILE_RULE
     153$(OBJDIR)\$(TARGET).lrf: $(MAKEFILE) $(ODIN32_INCLUDE)\odin32.post.emx.mk
     154    @echo emx
     155    @echo Creating file <<$@
     156$(OBJ_PROFILE)
     157$(OBJS)
     158-o $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION)
     159$(LIB_PROFILE)
     160$(LIBS)
     161$(OBJDIR)\bldlevel.$(ORGDEFFILE)
     162<<keep
     163!endif
     164
     165
     166!else # !ifndef EXETARGET
     167###############################################################################
     168# EXE Target
     169###############################################################################
     170
     171#
     172# Exe: All rule - build objs, target exe, copies target to bin.
     173#
     174!ifndef NO_ALL_RULE
     175all:    $(OBJDIR) \
     176        $(INTLIBS) \
     177        $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION) \
     178        $(OBJDIR)\$(TARGET).sym \
     179        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) \
     180        $(ODIN32_BIN)\$(TARGET).sym \
     181        $(ADDITIONAL_ALL)
     182!endif
     183
     184
     185#
     186# Exe: Lib rule - dummy rule
     187#
     188!ifndef NO_LIB_RULE
     189lib:
     190!endif
     191
     192
     193#
     194# Exe: Main target rule - builds the target exe.
     195#
     196!ifndef NO_MAIN_RULE
     197$(OBJDIR)\$(TARGET).$(TARGET_EXTENSION): $(LIBS) $(OBJS) $(OS2RES) $(DEFFILE) $(OBJDIR)\bldlevel.$(ORGDEFFILE) $(OBJDIR)\$(TARGET).lrf
     198    $(CMDQD_WAIT)
     199    -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
     200!ifdef OS2RES
     201    $(OS2RC) $(OS2RCLFLAGS) $(OS2RES) $@
     202!endif
     203!if !defined(DEBUG) && !defined(NO_LXLITE)
     204# remove all EAs from the file to prevent errors running LXLITE on
     205# a LAN server mounted JFS volume
     206    eautil $@ nul /s
     207    $(LXLITE) $@
     208!endif
     209!endif
     210
     211
     212#
     213# Exe: Linker file - creates the parameter file passed on to the linker.
     214#
     215!ifndef NO_LNKFILE_RULE
     216$(OBJDIR)\$(TARGET).lrf: $(MAKEFILE) $(ODIN32_INCLUDE)\odin32.post.emx.mk
     217!if "$(CCENV)" != "EMX"
     218    @echo Creating file <<$@
     219/OUT:$(OBJDIR)\$(TARGET).$(TARGET_EXTENSION)
     220/MAP:$(OBJDIR)\$(TARGET).map
     221$(OBJS:  =^
     222)
     223$(OBJ_PROFILE) $(LIB_PROFILE)
     224$(LIBS:  =^
     225)
     226$(OBJDIR)\bldlevel.$(ORGDEFFILE)
     227<<keep
     228!else
     229    @echo Creating file <<$@
     230$(EMX)\lib\crt0.obj+$(OBJ_PROFILE)$(OBJS: =+^
     231),
     232$(OBJDIR)\$(TARGET).$(TARGET_EXTENSION),
     233$(OBJDIR)\$(TARGET).map,
     234$(LIB_PROFILE)+$(LIBS: =+^
     235)+$(EMX)\lib\end.lib,
     236$(OBJDIR)\bldlevel.$(ORGDEFFILE);
     237<<keep
     238!endif
     239!endif
     240
     241
     242!endif # !ifndef EXETARGET !else
     243!else # !ifndef LIBTARGET
     244###############################################################################
     245# LIB target (internal or public object library)
     246###############################################################################
     247
     248#
     249# Localcleanup is default for internal object libraries.
     250#
     251!ifndef PUBLICLIB
     252LOCALCLEAN = 1
     253!endif
     254
     255
     256#
     257# Lib: All rule - build objs and target library.
     258#
     259!ifndef NO_ALL_RULE
     260all:    $(OBJDIR) \
     261        $(INTLIBS) \
     262!ifndef PUBLICLIB
     263        $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION) \
     264        $(ADDITIONAL_ALL)
     265!else
     266        $(OBJDIR)\$(TARGET)$(CUST).$(TARGET_EXTENSION) \
     267        $(ODIN32_LIB)\$(TARGET)$(CUST).$(TARGET_EXTENSION) \
     268        $(ADDITIONAL_ALL)
     269!endif
     270!endif
     271
     272
     273#
     274# Lib: Lib rule - dummy rule
     275#
     276!ifndef NO_LIB_RULE
     277!ifndef PUBLICLIB
     278lib:
     279!else
     280lib: all
     281!endif
     282!endif
     283
     284
     285#
     286# Lib: Internal library rule. Same as the all rule.
     287#
     288!ifndef NO_INTERNAL_LIBS
     289libs: all
     290!endif
     291
     292
     293#
     294# Lib: Main target rule - builds the target internal library.
     295#
     296!ifndef NO_MAIN_RULE
     297$(OBJDIR)\$(TARGET)$(CUST).$(TARGET_EXTENSION): $(OBJS)
     298    $(CMDQD_WAIT)
     299    $(RM) $@
     300!if "$(CCENV)" != "EMX"
     301    -4 $(ILIB) $(ILIBFLAGS) $@ @<<$@.parm
     302$(OBJS:  =&^
     303)
     304$(OBJDIR)\$(@B).lst
     305<<keep
     306!else
     307    $(ILIB) $(ILIBFLAGS) $@ @<<$@.parm
     308$(OBJS:  =^
     309)
     310<<keep
     311!endif
     312!endif
     313
     314
     315!endif # !ifndef LIBTARGET
     316
     317
     318###############################################################################
     319# Common rules for both exe and dll, new style
     320###############################################################################
     321
     322#
     323# Common (new): Dep rule - makes depenencies for C, C++ and Asm files.
     324#
     325!ifndef NO_DEP_RULE
     326dep: dep_internal $(ADDITIONAL_DEP)
     327dep_internal:
     328    $(DEPEND) $(CINCLUDES) -xdummy.c *.c *.cpp *.h *.asm *.inc *.rc *.dlg -robj *.orc
     329!ifdef SUBDIRS
     330    @$(DODIRS) "$(SUBDIRS)"  $(MAKE_CMD) dep
     331!endif
     332!endif
     333
     334
     335#
     336# Common: Internal library rule. Make libraries in subdirectories.
     337#   For makefiles with subdirectories is common to have make libraries in subdirectories.
     338#
     339!ifndef NO_INTERNAL_LIBS
     340!ifdef INTLIBS
     341$(INTLIBS):
     342    @$(DODIRS) "$(SUBDIRS)"  $(MAKE_CMD) libs
     343!endif
     344!endif
     345
     346!endif # OLD_STYLE
     347
     348###############################################################################
     349# Common rules for both exe and dll, old and new style.
     350###############################################################################
     351
     352#
     353# Common: Copy library rule.
     354#
     355!ifndef PUBLICLIB
     356$(ODIN32_LIB)\$(ORGTARGET).lib: $(OBJDIR)\$(ORGTARGET).lib
     357!else
     358$(ODIN32_LIB)\$(TARGET)$(CUST).$(TARGET_EXTENSION): $(OBJDIR)\$(TARGET)$(CUST).$(TARGET_EXTENSION)
     359!endif
     360    @if not exist $(@D) $(CREATEPATH) $(@D)
     361    $(CP) $** $@
     362!if "$(CUSTOMBUILD)" == "1"
     363    $(RM) dummy.c
     364!endif
     365
     366
     367#
     368# Common: Copy dll/exe rule.
     369#
     370$(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION): $(OBJDIR)\$(TARGET).$(TARGET_EXTENSION)
     371    @if not exist $(@D) $(CREATEPATH) $(@D)
     372    $(CP) $** $@
     373!ifndef NO_MAIN_BIN_COPY
     374    -$(CP) $** $(@D)..\..\$(@F)
     375!endif
     376
     377
     378#
     379# Common: Copy sym rule.
     380#
     381$(ODIN32_BIN)\$(TARGET).sym: $(OBJDIR)\$(TARGET).sym
     382    @if not exist $(@D) $(CREATEPATH) $(@D)
     383    $(CP) $** $@
     384!ifndef NO_MAIN_BIN_COPY
     385    -$(CP) $** $(@D)..\..\$(@F)
     386!endif
     387
     388
     389#
     390# Common: Make sym file rule.
     391#
     392$(OBJDIR)\$(TARGET).sym: $(OBJDIR)\$(TARGET).map
     393    cd $(OBJDIR)
     394    $(MAPSYM) $(TARGET).map
     395    cd ..\..
     396
     397
     398#
     399# Common: Make library from the <>exp.def or the <>.def file.
     400#
     401!ifndef LIBTARGET
     402!ifndef NOTEXPDEF
     403$(OBJDIR)\$(ORGTARGET).lib: $(OBJDIR)\$(ORGTARGET)exp.def
     404    $(IMPLIB) $(IMPLIBFLAGS) $@ $**
     405!else
     406$(OBJDIR)\$(TARGET).lib: $(DEFFILE)
     407    $(IMPLIB) $(IMPLIBFLAGS) $@ $**
     408!endif
     409!endif
     410
     411
     412#
     413# Common: Make the <>exp.def file.
     414#
     415!ifndef LIBTARGET
     416!ifndef NOTEXPDEF
     417$(OBJDIR)\$(ORGTARGET)exp.def: $(ORGDEFFILE)
     418    $(IMPDEF) $(IMPDEF_FLAGS) $** $@
     419!endif
     420!endif
     421
     422
     423#
     424# Common: Make .def-file with buildlevel info.
     425#
     426$(OBJDIR)\bldlevel.$(ORGDEFFILE): $(DEFFILE)
     427    $(BLDLEVELINF) $(DEFFILE) $@ -R"$(DEFFILE)" \
     428        -V"#define=ODIN32_VERSION,$(ODIN32_INCLUDE)\odinbuild.h" \
     429        -M"#define=ODIN32_BUILD_NR,$(ODIN32_INCLUDE)\odinbuild.h"
     430
     431
     432!ifndef NOPEHDR
     433#
     434# Common: Make the pe_$(ORGTARGET).obj
     435#
     436$(OBJDIR)\pe_$(ORGTARGET).obj: $(DEFFILE) $(PEBUILD)
     437        $(PEBUILD) $(ORGTARGET) $(DEFFILE) > $(@R).asm
     438    $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $(@R).asm
     439!endif
     440
     441#
     442# Common: Create the object directory.
     443#
     444$(OBJDIR):
     445    @if not exist $(OBJDIR) $(CREATEPATH) $(OBJDIR)
     446
     447
     448#
     449# Common: Generate Visual SlickEdit project.
     450#
     451!ifndef NO_VSLICKRULES
     452!ifdef ORGTARGET
     453vslick $(ORGTARGET).vpj:
     454    $(RM) $(ORGTARGET).vtg
     455    $(ODIN32_BASE)\tools\vslick\genproject.cmd $(CINCLUDES) $(ORGTARGET).vpj
     456!endif
     457!endif
     458
     459
     460#
     461# Common: General clean rule. To clean more add it to CLEANEXTRAS!
     462#
     463!ifndef NOCLEAN
     464!ifndef CLEAN2
     465clean:
     466!else
     467clean:  clean2
     468!endif
     469    $(RM) *.lib *.res *.map *.pch dummy.c \
     470!if "$(OBJDIR)" != ""
     471     $(OBJDIR)\* \
     472!endif
     473!ifndef LOCALCLEAN
     474        $(ODIN32_LIB)\$(ORGTARGET).lib \
     475        $(ORGTARGET)exp.def \
     476!ifndef PUBLICLIB
     477        $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) *.$(TARGET_EXTENSION) \
     478        $(ODIN32_BIN)\$(TARGET).sym *.sym \
     479!endif
     480        $(CLEANEXTRAS)
     481!else
     482        $(CLEANEXTRAS)
     483!endif
     484!ifdef SUBDIRS
     485    @$(DODIRS) "$(SUBDIRS)"  $(MAKE_CMD) clean
     486!endif
     487!endif
     488
     489
     490#
     491# Common: Include the .depend file.
     492#   If the depend file don't exists we'll complain about it.
     493#
     494!ifndef NODEP
     495!   if [$(EXISTS) .depend] == 0
     496!       include .depend
     497!   else
     498!       if [$(ECHO) .depend doesn't exist]
     499!       endif
     500!   endif
     501!   if [$(EXISTS) $(ODIN32_INCLUDE)\.depend] == 0
     502!       include $(ODIN32_INCLUDE)\.depend
     503!   else
     504!       if [$(ECHO) /include/.depend doesn't exist]
     505!       endif
     506!   endif
     507!endif
     508
     509
     510#
     511# Common: If MULTIJOBS is defined make sure cmdqd is running.
     512#
     513!ifndef NO_MULTIJOBS
     514!   ifdef MULTIJOBS
     515!      if [$(CMDQD) queryrunning] != 0
     516!          if [$(DODIRS) "$(ODIN32_BASE)\tools\cmdqd" $(MAKE_CMD) all] == 0
     517!          endif
     518!          if [$(CMDQD) init 7] == 0
     519!          endif
     520!      endif
     521!   endif
     522!endif
     523
     524
  • trunk/include/odinbuild.h

    r10419 r21299  
    2929
    3030#endif
    31 
    32 
    33 
    34 
    35 
    36 
    37 
    38 
    39 
    40 
    41 
    42 
    43 
    44 
    45 
    46 
    47 
    48 
    49 
    50 
    51 
    52 
    53 
    54 
    55 
    56 
    57 
    58 
    59 
    60 
    61 
    62 
    63 
    64 
    65 
    66 
    67 
    68 
    69 
    70 
    71 
    72 
    73 
    74 
    75 
    76 
    77 
    78 
    79 
    80 
    81 
    82 
    83 
    84 
    85 
    86 
    87 
    88 
    89 
    90 
    91 
    92 
    93 
    94 
  • trunk/include/win/winbase.h

    r10579 r21299  
    185185  DWORD  dwLowDateTime;
    186186  DWORD  dwHighDateTime;
    187 } FILETIME, *LPFILETIME;
     187} FILETIME, *LPFILETIME, *PFILETIME;
    188188#endif /* _FILETIME_ */
    189189
  • trunk/include/win/windef.h

    r10627 r21299  
    151151#endif
    152152
    153 
     153#ifndef __EMX__
    154154#if (__IBMC__ < 400) && (__IBMCPP__ < 360)
    155155#ifndef __declspec
     
    165165#endif
    166166#endif // (__IBMC__ < 400) && (__IBMCPP__ < 360)
     167#endif // __EMX__
    167168
    168169#ifndef CONST
     
    309310typedef double          __int64;
    310311#elif defined (__EMX__)
     312#ifndef _JAVASOFT_JNI_MD_H_
    311313typedef long long       __int64;
     314#endif
    312315#endif
    313316#else
     
    532535#define __TEXT(string) L##string /*probably wrong */
    533536# else  /* UNICODE */
    534 typedef CHAR TCHAR;
     537typedef CHAR            TCHAR,      *PTCHAR;
    535538typedef LPSTR LPTSTR;
    536539typedef LPCSTR LPCTSTR;
  • trunk/include/win/wine/unicode.h

    r9962 r21299  
    6868
    6969#ifdef __EMX__
    70 #define _K32CONV _optlink
     70#define _K32CONV _Optlink
    7171#else
    7272#define _K32CONV
  • trunk/include/win/winnt.h

    r10421 r21299  
    122122#  define __TEXT(string) L##string
    123123# else  /* UNICODE */
     124#ifndef __WINE_WINDEF_H
    124125typedef CHAR            TCHAR,      *PTCHAR;
    125126typedef LPSTR           PTSTR;
    126127typedef LPCSTR          PCTSTR;
     128#endif
    127129#  define __TEXT(string) string
    128130# endif /* UNICODE */
  • trunk/include/win/winuser.h

    r10579 r21299  
    37313731LONG        WINAPI GetWindowLongW(HWND,INT);
    37323732#define     GetWindowLong WINELIB_NAME_AW(GetWindowLong)
     3733
     3734#ifndef GetWindowLongPtr
     3735  #define GetWindowLongPtrA   GetWindowLongA
     3736  #define GetWindowLongPtrW   GetWindowLongW
     3737  #ifdef UNICODE
     3738    #define GetWindowLongPtr  GetWindowLongPtrW
     3739  #else
     3740    #define GetWindowLongPtr  GetWindowLongPtrA
     3741  #endif // !UNICODE
     3742#endif // !GetWindowLongPtr
     3743
     3744#ifndef SetWindowLongPtr
     3745  #define SetWindowLongPtrA   SetWindowLongA
     3746  #define SetWindowLongPtrW   SetWindowLongW
     3747  #ifdef UNICODE
     3748    #define SetWindowLongPtr  SetWindowLongPtrW
     3749  #else
     3750    #define SetWindowLongPtr  SetWindowLongPtrA
     3751  #endif // !UNICODE
     3752#endif // !SetWindowLongPtr
     3753
    37333754BOOL      WINAPI GetWindowPlacement(HWND,LPWINDOWPLACEMENT);
    37343755BOOL      WINAPI GetWindowRect(HWND,LPRECT);
  • trunk/include/win32type.h

    r10606 r21299  
    268268#define HWND16  WORD
    269269#define HWND32  DWORD
    270 typedef WORD *LPUINT16;
     270//typedef WORD *LPUINT16;
    271271#define HTASK16  WORD
    272272#define HMMIO16  WORD
Note: See TracChangeset for help on using the changeset viewer.