summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-05 15:59:23 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-05 15:59:23 -0500
commit7cd4adc908abf8c5e3b391c4a88f0514ba8468c4 (patch)
tree59f4f1c7a50f5701c442aed0c69ecb9249b09076 /tdecore
parent67d3c303f3ba902ebc8337d683cc184340d5db32 (diff)
downloadtdelibs-7cd4adc908abf8c5e3b391c4a88f0514ba8468c4.tar.gz
tdelibs-7cd4adc908abf8c5e3b391c4a88f0514ba8468c4.zip
Add proper refcounting option to TDEMainWindow
This relates to the discussion at: http://lists.kde.org/?l=kde-core-devel&m=107208785431497&w=2 Clean up a few minor code formatting issues
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/ksock.cpp7
-rw-r--r--tdecore/ksock.h6
2 files changed, 8 insertions, 5 deletions
diff --git a/tdecore/ksock.cpp b/tdecore/ksock.cpp
index 57bfc26d1..3f4886b8a 100644
--- a/tdecore/ksock.cpp
+++ b/tdecore/ksock.cpp
@@ -20,8 +20,6 @@
* Boston, MA 02110-1301, USA.
**/
-#define KSOCK_INTERNAL_C_COMPILATION 1
-
#include <config.h>
#include <sys/types.h>
@@ -42,7 +40,12 @@ extern "C" {
#define KSOCK_NO_BROKEN
#include "kdebug.h"
+// FIXME
+// FOR BINARY COMPATIBILITY ONLY
+// REMOVE WHEN PRACTICAL!
+#define TDESOCKET_BINARY_COMPAT_HACK 1
#include "ksock.h"
+#undef TDESOCKET_BINARY_COMPAT_HACK
#include "kextsock.h"
#include "ksockaddr.h"
diff --git a/tdecore/ksock.h b/tdecore/ksock.h
index 422e69b9b..31ca099e6 100644
--- a/tdecore/ksock.h
+++ b/tdecore/ksock.h
@@ -342,10 +342,10 @@ protected:
int sock;
private:
- // DEPRECATED
-#ifdef KSOCK_INTERNAL_C_COMPILATION
+ // HACK
+#ifdef TDESOCKET_BINARY_COMPAT_HACK
KDE_EXPORT bool bindAndListen();
-#endif // KSOCK_INTERNAL_C_COMPILATION
+#endif // TDESOCKET_BINARY_COMPAT_HACK
TDEServerSocket(const TDEServerSocket&);
TDEServerSocket& operator=(const TDEServerSocket&);