Mon, 22 Aug 2022 21:40:04 -0500
Inline pidgin_make_scrollable
We need to change it for GTK4, and there are few enough that it can be inlined. Eventually, that code might be a `.ui` anyway.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/1615/
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34304
diff
changeset
|
1 | #ifndef PURPLE_ZEPHYR_INTERNAL_H |
|
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34304
diff
changeset
|
2 | #define PURPLE_ZEPHYR_INTERNAL_H |
| 2086 | 3 | |
| 4 | #include <sysdep.h> | |
| 10867 | 5 | |
|
23315
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
6 | #ifdef LIBZEPHYR_EXT |
|
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
7 | #include <zephyr/zephyr.h> |
|
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
8 | #else |
|
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
9 | #include <zephyr_internal.h> |
|
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
10 | #endif |
|
934db4b32b9f
When compiling against an external libzephyr, we need to use its zephyr.h,
Richard Laager <rlaager@pidgin.im>
parents:
15435
diff
changeset
|
11 | |
| 10867 | 12 | #ifdef WIN32 |
| 13 | ||
| 14 | #ifndef MAXHOSTNAMELEN | |
| 15 | #define MAXHOSTNAMELEN 512 | |
| 16 | #endif | |
| 17 | ||
| 18 | #define ETIMEDOUT WSAETIMEDOUT | |
| 19 | #define EADDRINUSE WSAEADDRINUSE | |
|
28067
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
20 | #else /* !WIN32 */ |
|
40633
d884c4b6e202
Fix build with external libzephyr.
Arkadiy Illarionov <qarkai@gmail.com>
parents:
40628
diff
changeset
|
21 | #include <netdb.h> |
|
28067
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
22 | |
|
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
23 | #ifndef MAXHOSTNAMELEN |
|
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
24 | #define MAXHOSTNAMELEN 4096 |
|
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
25 | #endif |
|
086aa4d8d4a4
zephyr: Build properly on Hurd.
Marc Dequènes <duck@hurdfr.org>
parents:
23315
diff
changeset
|
26 | |
| 10867 | 27 | #endif |
| 2086 | 28 | |
| 29 | #ifdef ZEPHYR_USES_HESIOD | |
| 30 | #include <hesiod.h> | |
| 31 | #endif | |
| 32 | ||
| 33 | #ifndef ZEPHYR_USES_KERBEROS | |
| 34 | #define REALM_SZ MAXHOSTNAMELEN | |
| 35 | #define INST_SZ 0 /* no instances w/o Kerberos */ | |
| 36 | #define ANAME_SZ 9 /* size of a username + null */ | |
| 37 | #define CLOCK_SKEW 300 /* max time to cache packet ids */ | |
| 38 | #endif | |
| 39 | ||
|
39819
3554dac2991b
Standardize all protocol header guard macros.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
34304
diff
changeset
|
40 | #endif /* PURPLE_ZEPHYR_INTERNAL_H */ |