hack to compile ruby
authorMichael Andres <ma@suse.de>
Wed, 30 Apr 2008 23:58:56 +0000 (23:58 +0000)
committerMichael Andres <ma@suse.de>
Wed, 30 Apr 2008 23:58:56 +0000 (23:58 +0000)
swig/zypp.i

index e3cf4ea..99f26ab 100644 (file)
 
 %{
 /* Includes the header in the wrapper code */
+#ifdef SWIGRUBY
+#define REG_EXTENDED 1
+#define REG_ICASE (REG_EXTENDED << 1)
+#define REG_NEWLINE (REG_ICASE << 1)
+#define REG_NOSUB (REG_NEWLINE << 1)
+#endif
+
 #include <sstream>
 #include "zypp/base/PtrTypes.h"
 #include "zypp/Edition.h"