changeset 35:9428dd89df61

Fixed minimal plugin build, compat.h is now dwcompat.h, use dwstat instead of stat. Added build platform changes from the other makefiles to the mysql backend plugin. Updated the copyright date.
author Brian Smith <brian@dbsoft.org>
date Thu, 01 Aug 2019 13:28:39 -0500
parents e390915d5ab9
children 079bf80f4827
files dmail.c minimal/minimal.c mysql/makefile.vc mysql/mysqlplg.c
diffstat 4 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/dmail.c	Thu Aug 01 06:12:33 2019 -0500
+++ b/dmail.c	Thu Aug 01 13:28:39 2019 -0500
@@ -907,7 +907,7 @@
 	dw_box_pack_start(buttonbox, logo, 324, 172, FALSE, FALSE, 2);
 	dw_box_pack_start(buttonbox, 0, 50, 30, TRUE, FALSE, 0);
 
-	stext = dw_text_new("DynamicMail (c) 2000-2011 Brian Smith", 0);
+	stext = dw_text_new("DynamicMail (c) 2000-2019 Brian Smith", 0);
 	dw_window_set_style(stext, DW_DT_CENTER | DW_DT_VCENTER, DW_DT_CENTER | DW_DT_VCENTER);
 	dw_box_pack_start(mainbox, stext, 10, 20, TRUE, TRUE, 0);
 
--- a/minimal/minimal.c	Thu Aug 01 06:12:33 2019 -0500
+++ b/minimal/minimal.c	Thu Aug 01 13:28:39 2019 -0500
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <sys/stat.h>
 #include <string.h>
-#include <compat.h>
+#include <dwcompat.h>
 #include <dw.h>
 #include "backend.h"
 #include "minimal.h"
@@ -137,7 +137,7 @@
 	char **ret = NULL;
 	DIR *dir;
 	struct dirent *ent;
-	struct stat bleah;
+	struct dwstat bleah;
 
 	if(!(dir = opendir(".")))
 		return NULL;
@@ -635,7 +635,7 @@
 	AccountStruct *as = (AccountStruct *)acc;
 	char *namebuf;
 	FILE *tmp;
-	struct stat bleah;
+	struct dwstat bleah;
 	int pos;
 
 	if(!as || !mf || !mi)
@@ -764,7 +764,7 @@
 	AccountStruct *as = (AccountStruct *)acc;
 	char *namebuf, *mailbuf = NULL;
 	FILE *tmp;
-	struct stat bleah;
+	struct dwstat bleah;
 	int pos;
 
 	if(!as || !mf || !mi || !len)
--- a/mysql/makefile.vc	Thu Aug 01 06:12:33 2019 -0500
+++ b/mysql/makefile.vc	Thu Aug 01 13:28:39 2019 -0500
@@ -9,8 +9,10 @@
 # Configure settings for the target platform
 #	Default to x86 if not specified
 #
-!if "$(TARGET_CPU)" == ""
+!if "$(VSCMD_ARG_TGT_ARCH)" == ""
 TARGET_CPU=x86
+!else
+TARGET_CPU=$(VSCMD_ARG_TGT_ARCH)
 !endif
 
 !if "$(TARGET_CPU)" == "x86"
--- a/mysql/mysqlplg.c	Thu Aug 01 06:12:33 2019 -0500
+++ b/mysql/mysqlplg.c	Thu Aug 01 13:28:39 2019 -0500
@@ -5,8 +5,8 @@
 #include <stdio.h>
 #include <sys/stat.h>
 #include <string.h>
-#include <compat.h>
 #include <dw.h>
+#include <dwcompat.h>
 #include <mysql.h>
 #include "backend.h"
 #include "mysqlplg.h"