Author: Martín Ferrari <martin.ferrari@gmail.com>
Description: The conditional compilation based on the lib's version wasn't working.
--- a/swig/device.swg
+++ b/swig/device.swg
@@ -17,6 +17,7 @@
 /* See <cdio/device.h> for more extensive documentation. */
 
 %include "device_const.swg"
+#include <cdio/version.h>
 
 /* Set up to allow functions to return device lists of type "char
    *". We'll use a typedef so we can make sure to isolate this. I
--- a/swig/perliso9660.swg
+++ b/swig/perliso9660.swg
@@ -42,7 +42,7 @@
 %constant long int RECORD               = ISO_RECORD;
 
 /* When version 0.77 comes out, require it and fix this fix this. */
-#if 0
+#if LIBCDIO_VERSION_NUM >= 77
 %constant long int PROTECTION           = ISO_PROTECTION;
 #else 
 %constant long int PROTECTION           = 16;
