Don't check for NS_IMAGELIB_ERROR_LOAD_ABORTED if it's not defined
authorBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 03:06:49 +0000 (03:06 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Mar 2011 03:42:20 +0000 (03:42 +0000)
videolink.cpp

index 2a1295b..173b0dc 100644 (file)
@@ -423,7 +423,9 @@ namespace
        {
            // Check whether the load was successful, ignoring this
            // pseudo-error.
+#ifdef NS_IMAGELIB_ERROR_LOAD_ABORTED
            if (status != NS_IMAGELIB_ERROR_LOAD_ABORTED)
+#endif
                check(status);
 
            pending_window_update_ = false;