This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix -Wundef warning on PAGE_COPY_THRESHOLD
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 1 Jul 2014 10:47:30 -0700 (PDT)
- Subject: Re: [PATCH] Fix -Wundef warning on PAGE_COPY_THRESHOLD
- Authentication-results: sourceware.org; auth=none
- References: <20140701122057 dot GA14888 at spoyarek dot pnq dot redhat dot com> <20140701162305 dot 8C56D2C3994 at topped-with-meat dot com> <20140701165929 dot GC20796 at spoyarek dot pnq dot redhat dot com>
Generally memcopy.h is machine-specific while pagecopy.h is OS-specific.
Any scheme is OK with me if it follows typo-proof principles and means
that an OS-specific header can use #include_next and #undef+#define to
get all the rights bits without any source code duplication.