mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
experimental change to try to avoid non-standard extensions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34852 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6277a0a352
commit
466d55bd8d
8 changed files with 32 additions and 20 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2012-03-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSRunLoopWatcher.h:
|
||||
* Source/NSXMLPrivate.h:
|
||||
* Source/GSRunLoopCtxt.h:
|
||||
* Source/common.h:
|
||||
* Source/Additions/NSError+GNUstepBase.m:
|
||||
* Source/GSURLPrivate.h:
|
||||
Include config.h via common.h ... and have that turn off _GNU_SOURCE
|
||||
so GNU extensions aren't used and we stick to standard strerror_r
|
||||
|
||||
2012-03-01 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSXMLNode.m: More cleanup.
|
||||
|
|
|
@ -23,24 +23,18 @@
|
|||
|
||||
*/
|
||||
|
||||
/* Carefully turn off _GNU_SOURCE and on _XOPEN_SOURCE for string.h so we
|
||||
/* Carefully turn on _XOPEN_SOURCE for string.h so we
|
||||
* get the POSIX strerror_r
|
||||
*/
|
||||
#ifdef _GNU_SOURCE
|
||||
#undef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 0
|
||||
#endif
|
||||
#ifdef _XOPEN_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
#define _XOPEN_SOURCE 600
|
||||
#endif
|
||||
#include <string.h>
|
||||
#undef _GNU_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
|
||||
#import "config.h"
|
||||
#import "common.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#import "Foundation/NSDictionary.h"
|
||||
#import "Foundation/NSError.h"
|
||||
|
|
|
@ -25,10 +25,10 @@
|
|||
$Date$ $Revision$
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSMapTable.h>
|
||||
#include <Foundation/NSRunLoop.h>
|
||||
#import "common.h"
|
||||
#import "Foundation/NSException.h"
|
||||
#import "Foundation/NSMapTable.h"
|
||||
#import "Foundation/NSRunLoop.h"
|
||||
|
||||
/*
|
||||
* Setup for inline operation of arrays.
|
||||
|
|
|
@ -54,8 +54,8 @@
|
|||
* NB. This class is private to NSRunLoop and must not be subclassed.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include <Foundation/NSRunLoop.h>
|
||||
#import "common.h"
|
||||
#import "Foundation/NSRunLoop.h"
|
||||
|
||||
@class NSDate;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
/*
|
||||
* Headers needed by many URL loading classes
|
||||
*/
|
||||
#import "config.h"
|
||||
#import "common.h"
|
||||
#import "Foundation/NSArray.h"
|
||||
#import "Foundation/NSAutoreleasePool.h"
|
||||
#import "Foundation/NSData.h"
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
#ifndef _INCLUDED_NSXMLPRIVATE_H
|
||||
#define _INCLUDED_NSXMLPRIVATE_H
|
||||
|
||||
#import "config.h"
|
||||
#import "GNUstepBase/GSConfig.h"
|
||||
#import "common.h"
|
||||
|
||||
#define EXPOSE_NSXMLDTD_IVARS 1
|
||||
#define EXPOSE_NSXMLDTDNode_IVARS 1
|
||||
|
@ -42,7 +41,9 @@
|
|||
inline static unsigned char *XMLStringCopy(NSString *source)
|
||||
{
|
||||
char *xmlstr;
|
||||
unsigned int len = [source maximumLengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 1;
|
||||
unsigned int len;
|
||||
|
||||
len = [source maximumLengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 1;
|
||||
if (len == 0)
|
||||
return NULL;
|
||||
xmlstr = malloc(len);
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
* might be from an earlier build.
|
||||
*/
|
||||
|
||||
// disable extensions ... we want to use standard code
|
||||
#ifdef _GNU_SOURCE
|
||||
#undef _GNU_SOURCE
|
||||
#endif
|
||||
#define _GNU_SOURCE 0
|
||||
|
||||
#import "config.h"
|
||||
|
||||
/* If this is included in a file in the Additions subdirectory, and we are
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#import "common.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue