Closed
Bug 96245
Opened 23 years ago
Closed 23 years ago
Including <windowsx.h> even for non windows platforms
Categories
(Core Graveyard :: Plug-ins, defect)
Core Graveyard
Plug-ins
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: timeless, Assigned: serhunt)
References
()
Details
Attachments
(1 file)
1.17 KB,
patch
|
Details | Diff | Splinter Review |
spun off from bug 73436 please wrap or remove these 2 windowsisms
Thanks, timeless! Here is the fix Index: logger.cpp =================================================================== RCS file: /cvsroot/mozilla/modules/plugin/tools/spy/common/logger.cpp,v retrieving revision 1.1 diff -u -r1.1 logger.cpp --- logger.cpp 2001/03/25 23:38:24 1.1 +++ logger.cpp 2001/08/21 21:15:16 @@ -22,7 +22,6 @@ */ #include "xp.h" -#include <windowsx.h> #include "resource.h" #include "logger.h"
Status: NEW → ASSIGNED
I'm not sure this works for BeOS and other unix like's, actually i'm sure it'll break something. iirc, OS2 and Windows should be grouped together BeOS needs to be grouped w/ Unix. I think i'd do this: +#ifdef XP_MAC + #define DIR_SEPARATOR ":" +#else + #if defined(XP_WINDOWS) || defined (XP_OS2) + #define DIR_SEPARATOR "\\" + #else + /* Unix, BeOS, ... */ + #define DIR_SEPARATOR "/" + #endif +#endif but r=timeless for the code attempt 1, and we get some people to think about problem 2 [i'm just waking up and have thousands of bugmails before i sleep].
I'll include your correction as a starting point. If this is going to break something it will not happen soon. Non-Windows platforms have not even started to be addressed in this project (and I am not aware of any concrete plans in this direction), and the project itself is not part of the regular build. Which is probably a bad thing.
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy fixed
Status: RESOLVED → VERIFIED
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•