Ignore:
Timestamp:
Mar 11, 2000, 4:07:48 PM (25 years ago)
Author:
sandervl
Message:

compile fixes + cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/glut/glut_init.c

    r2996 r3083  
    1 /* $Id: glut_init.c,v 1.3 2000-03-04 19:10:15 jeroen Exp $ */
     1/* $Id: glut_init.c,v 1.4 2000-03-11 15:07:45 sandervl Exp $ */
    22/* Copyright (c) Mark J. Kilgard, 1994, 1997. */
    33
     
    1717#if defined(__WIN32OS2__)
    1818#include <windows.h>
    19 #include "winconst.h"
    2019#include "GL\gl.h"
    2120#undef WH_NB_HOOKS /* Get rid of copiler warning... */
     
    6968{
    7069  static char *classname;
    71 #if defined(__WIN32OS2__)
    72   WNDCLASSA wc;
    73   HINSTANCE hInstance = GetModuleHandleA(NULL);
    74 #else
    7570  WNDCLASS  wc;
    7671  HINSTANCE hInstance = GetModuleHandle(NULL);
    77 #endif
    7872
    7973  /* Make sure we register the window only once. */
     
    9589
    9690  /* Clear (important!) and then fill in the window class structure. */
    97 #if defined(__WIN32OS2__)
    98   memset(&wc, 0, sizeof(WNDCLASSA));
    99   wc.hIcon         = LoadIconA(hInstance, "GLUT_ICON");
    100   wc.hCursor       = LoadCursorA(hInstance, IDC_ARROWA);
    101 #else
    10291  memset(&wc, 0, sizeof(WNDCLASS));
    10392  wc.hIcon         = LoadIcon(hInstance, "GLUT_ICON");
    10493  wc.hCursor       = LoadCursor(hInstance, IDC_ARROW);
    105 #endif
    10694
    10795  wc.lpfnWndProc   = (WNDPROC)__glutWindowProc;
     
    114102  /* Fill in a default icon if one isn't specified as a resource. */
    115103  if(!wc.hIcon)
    116 #if defined(__WIN32OS2__)
    117     wc.hIcon = LoadIconA(NULL, MAKEINTRESOURCEA(IDI_WINLOGO_W));
    118 #else
    119104    wc.hIcon = LoadIcon(NULL, IDI_WINLOGO);
    120 #endif
    121 
    122 #if defined(__WIN32OS2__)
    123   if(!RegisterClassA(&wc)) {
    124 #else
     105
    125106  if(!RegisterClass(&wc)) {
    126 #endif
    127107    __glutFatalError("RegisterClass() failed:"
    128108                     "Cannot register GLUT window class.");
     
    198178}
    199179
    200 void APIENTRY
     180void GLAPIENTRY
    201181glutInit(int *argcp, char **argv)
    202182{
    203   dprintf(("GLUT32: glutInit()\n"));
    204 
    205183  char *display = NULL;
    206184  char *str, *geometry = NULL;
     
    346324
    347325/* CENTRY */
    348 void APIENTRY
     326void GLAPIENTRY
    349327glutInitWindowPosition(int x, int y)
    350328{
     
    360338}
    361339
    362 void APIENTRY
     340void GLAPIENTRY
    363341glutInitWindowSize(int width, int height)
    364342{
     
    374352}
    375353
    376 void APIENTRY
     354void GLAPIENTRY
    377355glutInitDisplayMode(unsigned int mask)
    378356{
Note: See TracChangeset for help on using the changeset viewer.