Changeset 989:3546df4ceb78 in roaraudio


Ignore:
Timestamp:
12/18/08 16:10:02 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

abstract from LP64 to ROAR_INSTINT

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r943 r989  
    3535#include "libroar.h" 
    3636 
    37 // this is to avoid warning messages on platforms 
    38 // where sizeof(void*) == 8 and szeof(int) == 4 
    39 #ifdef __LP64__ 
    40 #define INSTINT long int 
    41 #else 
    42 #define INSTINT int 
    43 #endif 
    44  
    4537int roar_vio_init_calls (struct roar_vio_calls * calls) { 
    4638 if ( !calls ) 
     
    7264 
    7365int roar_vio_set_fh   (struct roar_vio_calls * vio, int fh) { 
    74  return roar_vio_set_inst(vio, (void*)(INSTINT)(fh + 1)); 
     66 return roar_vio_set_inst(vio, (void*)(ROAR_INSTINT)(fh + 1)); 
    7567} 
    7668 
     
    7971  return -1; 
    8072 
    81  return ((int)(INSTINT)vio->inst) - 1; 
     73 return ((int)(ROAR_INSTINT)vio->inst) - 1; 
    8274} 
    8375 
  • roard/driver_roar.c

    r949 r989  
    2424 
    2525#include "roard.h" 
    26  
    27 // this is to avoid warning messages on platforms 
    28 // where sizeof(void*) == 8 and szeof(int) == 4 
    29 #ifdef __LP64__ 
    30 #define INSTINT long int 
    31 #else 
    32 #define INSTINT int 
    33 #endif 
    3426 
    3527int driver_roar_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh) { 
Note: See TracChangeset for help on using the changeset viewer.