[dia: 5/105] #19: Cleanup: remove LIBDIA_COMPILATION.



commit ae7d79bf9331b53af63a0c11eeb598e83edfdd02
Author: Eduard Nicodei <eddnicodei gmail com>
Date:   Sun Dec 16 22:16:03 2018 +0000

    #19: Cleanup: remove LIBDIA_COMPILATION.
    
      - LIBDIA_COMPILATION is defined in all makefiles and there doesn't
        seem to be any instance when it is NOT defined.
        It should be safe therefore to remove it.

 lib/diavar.h     | 6 +-----
 lib/properties.c | 3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/lib/diavar.h b/lib/diavar.h
index 83198d6b..f30d3fac 100644
--- a/lib/diavar.h
+++ b/lib/diavar.h
@@ -4,11 +4,7 @@
 #include <glib.h>
 
 #ifdef G_OS_WIN32
-#  ifdef LIBDIA_COMPILATION
-#    define DIAVAR __declspec(dllexport)
-#  else  /* !LIBDIA_COMPILATION */
-#    define DIAVAR __declspec(dllimport)
-#  endif /* !LIBDIA_COMPILATION */
+#  define DIAVAR __declspec(dllexport)
 #else  /* !G_OS_WIN32 */
 #  /* DONT: define DIAVAR extern */
 #  define DIAVAR /* empty */
diff --git a/lib/properties.c b/lib/properties.c
index e70de410..84eb788d 100644
--- a/lib/properties.c
+++ b/lib/properties.c
@@ -29,9 +29,6 @@
 #endif
 
 #include "geometry.h"
-#ifndef LIBDIA_COMPILATION
-#  define LIBDIA_COMPILATION
-#endif
 #undef G_INLINE_FUNC
 #define G_INLINE_FUNC extern
 #define G_CAN_INLINE 1


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