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