Overview
Comment: | Fix missing includes and typos. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
35f59c61c6351c1389f41c184816941f |
User & Date: | js on 2010-01-30 14:14:11 |
Other Links: | manifest | tags |
Context
2010-01-30
| ||
14:26 | Don't define methods unavailable on Windows. check-in: c9e9ea561c user: js tags: trunk | |
14:14 | Fix missing includes and typos. check-in: 35f59c61c6 user: js tags: trunk | |
13:33 | Move some stuff from OFSocket to OFTCPSocket. check-in: fe6787bc79 user: js tags: trunk | |
Changes
Modified src/Makefile from [bac1f4e24e] to [cffb8debfd].
︙ | ︙ | |||
35 36 37 38 39 40 41 | OFMacros.h \ ObjFW.h \ asprintf.h \ ${ATOMIC_H} \ objfw-defs.h \ ${THREADING_H} | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | OFMacros.h \ ObjFW.h \ asprintf.h \ ${ATOMIC_H} \ objfw-defs.h \ ${THREADING_H} SRCS += ${ASPRINTF_M} \ iso_8859_15.m \ windows_1252.m \ ${OBJC_PROPERTIES_M} \ ${OBJC_SYNC_M} include ../buildsys.mk CPPFLAGS += -I.. OBJCFLAGS += ${LIB_CFLAGS} LD = ${OBJC} |
Modified src/OFSocket.m from [e6b38c0bf2] to [7c0069f9e8].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 | * the packaging of this file. */ #include "config.h" #include <string.h> #include <fcntl.h> #import "OFSocket.h" #import "OFExceptions.h" #ifndef INVALID_SOCKET | > > > > > | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | * the packaging of this file. */ #include "config.h" #include <string.h> #include <fcntl.h> #ifndef _WIN32 # include <sys/types.h> # include <sys/socket.h> #endif #import "OFSocket.h" #import "OFExceptions.h" #ifndef INVALID_SOCKET # define INVALID_SOCKET -1 #endif @implementation OFSocket #ifdef _WIN32 + (void)initialize { WSADATA wsa; |
︙ | ︙ |
Modified src/OFTCPSocket.m from [5ad68e30bb] to [0a606f2f49].
︙ | ︙ | |||
13 14 15 16 17 18 19 | #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #if !defined(HAVE_THREADSAFE_GETADDRINFO) && !defined(_WIN32) | | | | > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #if !defined(HAVE_THREADSAFE_GETADDRINFO) && !defined(_WIN32) # include <netinet/in.h> #endif #import "OFTCPSocket.h" #import "OFString.h" #import "OFExceptions.h" #import "OFMacros.h" #ifndef INVALID_SOCKET # define INVALID_SOCKET -1 #endif #if defined(OF_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) # import "OFThread.h" # import "OFDataArray.h" static OFMutex *mutex = nil; #endif @implementation OFTCPSocket #if defined(OF_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) + (void)initialize |
︙ | ︙ |
Modified src/threading.h from [27e884cfec] to [ec6d801a5e].
1 2 3 4 5 6 7 8 9 10 11 12 13 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFMacros.h" | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* * Copyright (c) 2008 - 2009 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "OFMacros.h" #if !defined(OF_THREADS) || (!defined(OF_HAVE_PTHREADS) && !defined(_WIN32)) # error No threads available! #endif #if defined(OF_HAVE_PTHREADS) #include <pthread.h> typedef pthread_t of_thread_t; typedef pthread_mutex_t of_mutex_t; |
︙ | ︙ |