Changeset 9735 for trunk/include


Ignore:
Timestamp:
Jan 28, 2003, 5:20:43 PM (23 years ago)
Author:
sandervl
Message:

PF: Header fixes for GCC

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/initdll.h

    r9703 r9735  
    6464#endif
    6565
    66 #endif
     66#endif  /* IBM CPP Compiler */
    6767
    6868#ifdef __cplusplus
     
    8383ULONG APIENTRY inittermComctl32(ULONG hModule, ULONG ulFlag);
    8484ULONG APIENTRY inittermGdi32(ULONG hModule, ULONG ulFlag);
     85ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag);
    8586ULONG APIENTRY inittermWsock32(ULONG hModule, ULONG ulFlag);
    8687ULONG APIENTRY inittermWininet(ULONG hModule, ULONG ulFlag);
     
    9697ULONG APIENTRY inittermDDraw(ULONG hModule, ULONG ulFlag);
    9798ULONG APIENTRY inittermNTDLL(ULONG hModule, ULONG ulFlag);
     99ULONG APIENTRY inittermMSVCRT(ULONG hModule, ULONG ulFlag);
    98100
    99101ULONG APIENTRY InitializeKernel32();
  • trunk/include/odin.h

    r6906 r9735  
    8484  #define WIN32API  __stdcall
    8585  #define WINAPI    __stdcall
    86   #define SYSTEM    __stdcall
     86  #define SYSTEM   
    8787  #define PASCAL    __stdcall
    8888  #define INLINE    __inline__
  • trunk/include/os2sel.h

    r9631 r9735  
    1 /* $Id: os2sel.h,v 1.10 2003-01-06 13:24:20 sandervl Exp $ */
     1/* $Id: os2sel.h,v 1.11 2003-01-28 16:20:43 sandervl Exp $ */
    22/*
    33 *
     
    3939{
    4040 asm volatile (
    41     "mov %eax, %fs      \n\t"
     41    "mov %fs, %ax       \n\t"
    4242 );
    4343}
     
    4545extern inline void SetFS(unsigned short sel)
    4646{
    47  asm volatile (
    48         "mov    %eax,%esp       \n\t"
    49         "mov    %fs, %eax       \n\t"
    50  );
     47 __asm__ __volatile__("movw %%ax,%%fs" : : "a" (sel));
    5148}
    5249
     
    5451{
    5552 asm volatile (
    56         "push    0x150b         \n\t"
    57         "mov     %ax, %fs       \n\t"
     53        "push    $0x0150b       \n\t"
     54        "movw    %fs,%ax        \n\t"
    5855        "pop     %fs"
    5956 );
Note: See TracChangeset for help on using the changeset viewer.