[ekiga] Fix header inclusion



commit a094c229d6c3abdb963a7d5b0d176b55b0865d85
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Thu Nov 29 11:31:54 2012 +0100

    Fix header inclusion
    
    A file in lib/ should not depend on a file in src/.

 lib/gui/dxwindow.cpp |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/lib/gui/dxwindow.cpp b/lib/gui/dxwindow.cpp
index ad3d3dd..e2ed827 100644
--- a/lib/gui/dxwindow.cpp
+++ b/lib/gui/dxwindow.cpp
@@ -37,8 +37,7 @@
 
 #include "dxwindow.h"
 #include <iostream>
-
-#include "../../src/common.h"
+#include "ptlib.h"
 
 #define PIP_RATIO_WIN  3
 #define PIP_RATIO_FS   5
@@ -1036,13 +1035,9 @@ DXWindow::ErrorMessage()
                              NULL);
   if (dwMsgLen) {
     buffer [ strlen(buffer) - 2 ] = 0;
-    g_snprintf (result, sizeof (result), "%s (%u)",
-		buffer, (int) GetLastError ());
-  }
-  else {
-    g_snprintf (result, sizeof (result), "%u",
-		(int) GetLastError ());
-  }
+    snprintf (result, sizeof (result), "%s (%u)", buffer, (int) GetLastError ());
+  } else
+    snprintf (result, sizeof (result), "%u", (int) GetLastError ());
 
   return result;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]