* this partly fixes the broken build of the app_server test_environment

(yes I still use that), but there are more problems, regarding
  for example BPrivateScreen definition and the disk device API stuff,
  I am kind of clueless regarding those. :-(


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22623 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2007-10-19 19:54:05 +00:00
parent 4ee81443c3
commit 2759998892
1 changed files with 25 additions and 0 deletions

View File

@ -47,6 +47,10 @@ typedef int socklen_t;
# define B_FIRST_REAL_TIME_PRIORITY B_REAL_TIME_DISPLAY_PRIORITY # define B_FIRST_REAL_TIME_PRIORITY B_REAL_TIME_DISPLAY_PRIORITY
#endif #endif
#if __GNUC__
# define _PRINTFLIKE(_format_, _args_) \
__attribute__((format(__printf__, _format_, _args_)))
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -115,5 +119,26 @@ extern float roundf(float value);
#define B_MPEG_2_5_AUDIO_LAYER_2 (enum mpeg_id)0x302 #define B_MPEG_2_5_AUDIO_LAYER_2 (enum mpeg_id)0x302
#define B_MPEG_2_5_AUDIO_LAYER_3 (enum mpeg_id)0x303 #define B_MPEG_2_5_AUDIO_LAYER_3 (enum mpeg_id)0x303
// TODO: experimental API (keep in sync with Accelerant.h)
typedef struct {
uint32 version;
char vendor[128];
char name[128];
char serial_number[128];
uint32 product_id;
struct {
uint16 week;
uint16 year;
} produced;
float width;
float height;
uint32 min_horizontal_frequency; // in kHz
uint32 max_horizontal_frequency;
uint32 min_vertical_frequency; // in Hz
uint32 max_vertical_frequency;
uint32 max_pixel_clock; // in kHz
} monitor_info;
#endif // HAIKU_BUILD_COMPATIBILITY_H #endif // HAIKU_BUILD_COMPATIBILITY_H