Index: /trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp
===================================================================
--- /trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp	(revision 22690)
+++ /trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp	(revision 22691)
@@ -496,4 +496,22 @@
 static nsIEventQueue* g_mainEventQ = nsnull;
 
+// Wrapper that checks if the queue has pending events.
+DECLINLINE(bool)
+hasEventQueuePendingEvents(nsIEventQueue *pQueue)
+{
+	PRBool fHasEvents = PR_FALSE;
+	nsresult rc = pQueue->PendingEvents(&fHasEvents);
+	return NS_SUCCEEDED(rc) && fHasEvents ? true : false;
+}
+
+// Wrapper that checks if the queue is native or not.
+DECLINLINE(bool)
+isEventQueueNative(nsIEventQueue *pQueue)
+{
+	PRBool fIsNative = PR_FALSE;
+	nsresult rc = pQueue->IsQueueNative(&fIsNative);
+	return NS_SUCCEEDED(rc) && fIsNative ? true : false;
+}
+
 # ifdef RT_OS_DARWIN
 #  include <iprt/time.h>
@@ -504,23 +522,4 @@
 #   include <CarbonEvents.h>
 #  endif
-
-// Wrapper that checks if the queue has pending events.
-DECLINLINE(bool)
-hasEventQueuePendingEvents(nsIEventQueue *pQueue)
-{
-	PRBool fHasEvents = PR_FALSE;
-	nsresult rc = pQueue->PendingEvents(&fHasEvents);
-	return NS_SUCCEEDED(rc) && fHasEvents ? true : false;
-}
-
-// Wrapper that checks if the queue has pending events.
-DECLINLINE(bool)
-isEventQueueNative(nsIEventQueue *pQueue)
-{
-	PRBool fIsNative = PR_FALSE;
-	nsresult rc = pQueue->IsQueueNative(&fIsNative);
-	return NS_SUCCEEDED(rc) && fIsNative ? true : false;
-}
-
 
 // Common fallback for waiting (and maybe processing) events. Caller process
