fixed build for R5 : now uses inttypes.h because it's present on R5 also
HaikuBuildCompatibily.h exposes INT64_MAX based on limits.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -67,5 +67,10 @@ extern float roundf(float value);
|
|||||||
# define B_BAD_DATA (B_NOT_ALLOWED + 1)
|
# define B_BAD_DATA (B_NOT_ALLOWED + 1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef INT64_MAX
|
||||||
|
#include <limits.h>
|
||||||
|
#define INT64_MAX LONGLONG_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // HAIKU_BUILD_COMPATIBILITY_H
|
#endif // HAIKU_BUILD_COMPATIBILITY_H
|
||||||
|
|
||||||
|
|||||||
@@ -5,14 +5,6 @@ SetSubDirSupportedPlatformsBeOSCompatible ;
|
|||||||
if $(TARGET_PLATFORM) != haiku {
|
if $(TARGET_PLATFORM) != haiku {
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers os media ] : true ;
|
UseHeaders [ FDirName $(HAIKU_TOP) headers os media ] : true ;
|
||||||
# We need the public media headers also when not compiling for Haiku.
|
# We need the public media headers also when not compiling for Haiku.
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers os ] : true ;
|
|
||||||
# We need the public headers also when not compiling for Haiku.
|
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers posix ] : true ;
|
|
||||||
# We need the public posix headers also when not compiling for Haiku.
|
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers os support ] : true ;
|
|
||||||
# We need the public support headers also when not compiling for Haiku.
|
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers os app ] : true ;
|
|
||||||
# We need the public app headers also when not compiling for Haiku.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UsePrivateHeaders media shared ;
|
UsePrivateHeaders media shared ;
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
#include <MediaDefs.h>
|
#include <MediaDefs.h>
|
||||||
#include <MediaNode.h>
|
#include <MediaNode.h>
|
||||||
#include <Roster.h>
|
#include <Roster.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
|
||||||
#include "MediaMisc.h"
|
#include "MediaMisc.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
@@ -725,7 +725,7 @@ media_format::operator=(const media_format &clone)
|
|||||||
if (meta_data_area < 0) {
|
if (meta_data_area < 0) {
|
||||||
// whoops, we just lost our meta data
|
// whoops, we just lost our meta data
|
||||||
meta_data = NULL;
|
meta_data = NULL;
|
||||||
meta_data_size = NULL;
|
meta_data_size = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
meta_data = malloc(meta_data_size);
|
meta_data = malloc(meta_data_size);
|
||||||
@@ -733,7 +733,7 @@ media_format::operator=(const media_format &clone)
|
|||||||
memcpy(meta_data, clone.meta_data, meta_data_size);
|
memcpy(meta_data, clone.meta_data, meta_data_size);
|
||||||
} else {
|
} else {
|
||||||
// whoops, we just lost our meta data
|
// whoops, we just lost our meta data
|
||||||
meta_data_size = NULL;
|
meta_data_size = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user