udf: Move constant to header.

This way, it is a compile time constant and Clang does no longer
complain about dynamic arrays of non-POD types.

Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
Jonathan Schleifer
2014-01-13 19:15:58 +01:00
committed by Jérôme Duval
parent 76b12d6056
commit 9c707f06a2
2 changed files with 1 additions and 3 deletions
@@ -685,8 +685,6 @@ implementation_use_descriptor::dump() const
// partition_descriptor
//----------------------------------------------------------------------
const uint8 kMaxPartitionDescriptors = 2;
void
partition_descriptor::dump() const
{
@@ -935,7 +935,7 @@ private:
/*! \brief Maximum number of partition descriptors to be found in volume
descriptor sequence, per UDF-2.50
*/
extern const uint8 kMaxPartitionDescriptors;
const uint8 kMaxPartitionDescriptors = 2;
#define UDF_MAX_PARTITION_MAPS 2
#define UDF_MAX_PARTITION_MAP_SIZE 64