10 January 2007, 00:32 | #41 | |
Registered User
Join Date: Aug 2006
Location: Tampere / Finland
Age: 46
Posts: 21
|
Quote:
Can you do anything about this? We should have something that works for everyone. That is the reason for configure scripts on unix. |
|
10 January 2007, 01:53 | #42 |
Zone Friend
|
This should do the trick!
Please recheck. |
10 January 2007, 02:11 | #43 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
But there's still one problem if you would want to compile 1.3.3 with project files (of whatever IDE) as CVS version includes "xdmsconfig.h" in "xdms.c" and that is made by ./configure. So you would have to make one yourself. Easy to do, it just defines VERSION and for MinGW NO_MKSTEMP, but you can't just load the project into the IDE and compile.
I think the best solution is that the "xdmsconfig.h" would be omitted. The version number can be added as a compiler flag as it was in version up to 1.3.2. And that MinGW check is not done with that check in ./configure and defining NO_MKSTEMPS, but by using #ifdef __MINGW32__ in xdms.c. Last edited by thor; 10 January 2007 at 02:50. |
10 January 2007, 05:13 | #44 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
Fix for not being able to write the temp file (for x and z commands) under Windows in xdms.c as there is no /tmp:
add (needs to be before #include "cdata.h") Code:
#ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif and replace Code:
strcpy(tname, "/tmp/xdmsXXXXXX"); Code:
#ifdef _WIN32 DWORD ret = 0; DWORD bufsize = FNAME_MAXC-10; ret = GetTempPath(bufsize, tname); if (!ret || ret > bufsize) { fprintf(stderr, "Couldn't get temp dir\n"); exit(-1); } strcat(tname, "xdmsXXXXXX"); #else strcpy(tname, "/tmp/xdmsXXXXXX"); #endif Last edited by thor; 11 January 2007 at 23:12. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dms | Ian | request.Apps | 6 | 14 October 2008 16:43 |
fix or skip dms-errors | Adderly | support.Other | 2 | 26 July 2006 02:39 |
dms problems | otro | support.Apps | 12 | 26 October 2004 01:06 |
Read\Write Errors..... | THX1138 | support.Apps | 10 | 13 October 2004 15:24 |
CD Read Write Errors | Stom | support.WinUAE | 2 | 07 June 2002 18:46 |
|
|