Author Topic: Sint64  (Read 5501 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Re: Sint64
« Reply #15 on: January 27, 2016, 08:47:15 AM »
Hi Charles,

the type-definition what I have is okay!

another thing here is an error  message in this typedef  struct.

 
Code: [Select]
typededef struct SDL_Surface
{
  Uint32 flags               
  SDL_PixelFormat *format   
  int w, h                   
  int pitch                 
  void *pixels             
  void *userdata           
  int locked                 
  void *lock_data           
  SDL_Rect clip_rect         
  struct SDL_BlitMap *map  '< here
  int refcount               
} SDL_Surface
I  got a solution, but whether this is a proper solution I have to test out.

.

Charles Pegge

  • Guest
Re: Sint64
« Reply #16 on: January 28, 2016, 02:19:45 AM »

The problem is that SDL_BlitMap is an undefined private structure.

The solution is to define it before including the SDL headers

typedef struct SDL_BlitMap {}

or hack:

typedef sys SDL_BlitMap


Peter

  • Guest
Re: Sint64
« Reply #17 on: January 28, 2016, 07:48:13 AM »
Thanks Charles,

that was my solution!

Code: [Select]
typedef struct SDL_BlitMap SDL_BlitMap

Peter

  • Guest
Re: Sint64
« Reply #18 on: January 28, 2016, 02:12:59 PM »
Hi Charles,

solved!
Sdl2 works now
« Last Edit: January 30, 2016, 12:55:49 AM by Peter »

Charles Pegge

  • Guest
Re: Sint64
« Reply #19 on: January 30, 2016, 02:24:55 AM »
Very good!

I will need to adjust o2 struct semantics in a future release, to comply with C.