Closed Bug 153938 Opened 23 years ago Closed 23 years ago

i don't like #if defined(XP_PC) && !defined(XP_OS2)

Categories

(Core Graveyard :: Installer: XPInstall Engine, defect)

x86
OS/2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: mkaply)

References

()

Details

Attachments

(1 file, 1 obsolete file)

I don't either. We have bugs and diffs for some of this stuff, but it never got checked in. Someone just needs to give me blanket authority to change this stuff when I see it.
Feel free. I'll sr= any patches
Assignee: dveditz → mkaply
Attached patch attempt to clean out this stuff (obsolete) — Splinter Review
it looks like a few places don't handle BeOS or OS/2. fwiw #include <unistd.h> - BeOS #include <netdb.h> - BONE #include <sys/socket.h> - BONE #include <arpa/inet.h> - BONE I bet most platforms don't exercise this code
I've done some porting in some of these files, so this patch needs updating. Note, in the libxpnet files, I used __OS2__ to be consistent with the use of _WINDOWS (compiler define rather than Mozilla define) I think that this was done deliberately by the writer of libxpnet - I've no idea why. Also, I'd prefer #if defined(XP_WIN) || defined(XP_OS2) to #ifdef XP_PC
Changing the _WINDOWS and other stuff isn't right. This past JUST gets rid of XP_PC stuff. In some cases, we had to do: #ifdef XP_OS2 #elif defined(XP_PC) for the OS/2 case - I fixed these as well to use XP_WIN and moved OS/2 to the bottom. Very simple patch.
Attachment #89005 - Attachment is obsolete: true
Attachment #111622 - Flags: review?(timeless)
Attachment #111622 - Flags: superreview?(dveditz)
Attachment #111622 - Flags: review?(timeless)
Attachment #111622 - Flags: review+
Comment on attachment 111622 [details] [diff] [review] Patch to just address issue in bug sr=dveditz
Attachment #111622 - Flags: superreview?(dveditz) → superreview+
Fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: