Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
457144a0
Commit
457144a0
authored
Sep 04, 2009
by
Tatuya JINMEI 神明達哉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explained the portability workaround macro for isc__ vs isc___
parent
2eb6a502
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lib/isc/include/isc/mem.h
lib/isc/include/isc/mem.h
+11
-1
No files found.
lib/isc/include/isc/mem.h
View file @
457144a0
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mem.h,v 1.8
5
2009/09/04 1
7:47:26 each
Exp $ */
/* $Id: mem.h,v 1.8
6
2009/09/04 1
8:51:37 jinmei
Exp $ */
#ifndef ISC_MEM_H
#define ISC_MEM_H 1
...
...
@@ -152,6 +152,16 @@ LIBISC_EXTERNAL_DATA extern unsigned int isc_mem_debugging;
#endif
/*%<
* We use either isc___mem (three underscores) or isc__mem (two) depending on
* whether it's for BIND9's internal purpose (with -DBIND9) or generic export
* library. This condition is generally handled in isc/namespace.h, but for
* Windows it doesn't work if it involves multiple times of macro expansion
* (such as isc_mem to isc__mem then to isc___mem). The following definitions
* are used to work around this portability issue. Right now, we don't support
* the export library for Windows, so we always use the three-underscore
* version.
*/
#ifdef WIN32
#define ISCMEMFUNC(sfx) isc___mem_ ## sfx
#define ISCMEMPOOLFUNC(sfx) isc___mempool_ ## sfx
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment