File: 03_version_information_in_swig.patch

package info (click to toggle)
libdevice-cdio-perl 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,248 kB
  • ctags: 2,564
  • sloc: ansic: 11,536; perl: 4,027; makefile: 69; sh: 3
file content (23 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;