Mercurial > cabal
annotate sources/headers/os.hpp @ 8:ed800eab1c38 tip
fixed the brackets :^)
| author | Vlad Glagolev <enqlave@gmail.com> |
|---|---|
| date | Sun, 20 Apr 2008 13:45:32 +0400 |
| parents | 8d54d9fdeca3 |
| children |
| rev | line source |
|---|---|
| 7 | 1 /** os.hpp (2007-03-04) |
| 2 | 2 * |
| 3 * -- CABAL -- operating system detection | |
| 4 * | |
| 5 * Copyright (c) 2007-2008 Vlad Glagolev <enqlave@gmail.com> | |
| 6 * All rights reserved. | |
| 7 * | |
| 8 * Permission to use, copy, modify, and distribute this software for any | |
| 9 * purpose with or without fee is hereby granted, provided that the above | |
| 10 * copyright notice and this permission notice appear in all copies. | |
| 11 * | |
| 12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| 13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
| 14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
| 15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
| 16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
| 17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
| 18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
| 19 */ | |
| 20 | |
| 21 #ifndef _OS_HPP_ | |
| 22 #define _OS_HPP_ | |
| 23 | |
| 24 #include "conf.hpp" | |
| 25 | |
|
6
9be05a31b7f9
Enqlave IRC Network => Vaygr IRC Network
Vlad Glagolev <enqlave@gmail.com>
parents:
2
diff
changeset
|
26 // permament char pointer |
| 2 | 27 typedef const char *pchar; |
| 28 | |
| 29 #if HAVE_FSTREAM | |
| 30 #include <fstream> | |
| 31 #endif // HAVE_FSTREAM | |
| 32 | |
| 33 #if HAVE_IOSTREAM | |
| 34 #include <iostream> | |
| 35 using namespace std; | |
| 36 #else | |
| 37 #include <iostream.h> | |
| 38 #endif // HAVE_IOSTREAM | |
| 39 | |
| 40 #include <errno.h> | |
| 41 #include <signal.h> | |
| 42 | |
| 43 #if HAVE_UNISTD_H | |
| 44 #include <unistd.h> | |
| 45 #endif // HAVE_UNISTD_H | |
| 46 | |
| 47 #if HAVE_STRING | |
| 48 #include <string.h> | |
| 49 #endif // HAVE_STRING | |
| 50 | |
| 51 #include <sys/socket.h> | |
| 52 | |
| 53 #include <arpa/inet.h> | |
| 54 #include <netdb.h> | |
| 55 | |
| 56 #include <netinet/in.h> | |
| 57 | |
| 58 #if HAVE_NETINET_TCP_H | |
| 59 #include <netinet/tcp.h> | |
| 60 #endif // HAVE_NETINET_TCP_H | |
| 61 | |
| 62 #endif // _OS_HPP_ |
