From 27599988923b528dd200ebdddd564d4c9d1d19c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 19 Oct 2007 19:54:05 +0000 Subject: [PATCH] * 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 --- headers/build/HaikuBuildCompatibility.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/headers/build/HaikuBuildCompatibility.h b/headers/build/HaikuBuildCompatibility.h index f50ae0160a..7f8f428ff4 100644 --- a/headers/build/HaikuBuildCompatibility.h +++ b/headers/build/HaikuBuildCompatibility.h @@ -47,6 +47,10 @@ typedef int socklen_t; # define B_FIRST_REAL_TIME_PRIORITY B_REAL_TIME_DISPLAY_PRIORITY #endif +#if __GNUC__ +# define _PRINTFLIKE(_format_, _args_) \ + __attribute__((format(__printf__, _format_, _args_))) +#endif #ifdef __cplusplus 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_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