summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralkondratenko@gmail.com <alkondratenko@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2013-07-26 19:35:38 +0000
committeralkondratenko@gmail.com <alkondratenko@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50>2013-07-26 19:35:38 +0000
commit11d46f0aac5ef941b74114412bda4747a349c60d (patch)
tree49643edd3648ddf7dfaa23d56e7fcc8ae6f6fb17
parent6d4ad4428bb8f587d890fa5b7a76ba65dcf48dcb (diff)
downloadgperftools-11d46f0aac5ef941b74114412bda4747a349c60d.tar.gz
issue-556: dll-export getpagesize
Because page_heap_test needs this. git-svn-id: http://gperftools.googlecode.com/svn/trunk@231 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rw-r--r--src/windows/port.cc1
-rw-r--r--src/windows/port.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/windows/port.cc b/src/windows/port.cc
index 591e3a8..249a2aa 100644
--- a/src/windows/port.cc
+++ b/src/windows/port.cc
@@ -50,6 +50,7 @@
// -----------------------------------------------------------------------
// Basic libraries
+PERFTOOLS_DLL_DECL
int getpagesize() {
static int pagesize = 0;
if (pagesize == 0) {
diff --git a/src/windows/port.h b/src/windows/port.h
index 6c90a8d..ca0d8b1 100644
--- a/src/windows/port.h
+++ b/src/windows/port.h
@@ -407,7 +407,7 @@ inline int poll(struct pollfd* fds, int nfds, int timeout) {
return 0;
}
-EXTERN_C int getpagesize(); /* in port.cc */
+EXTERN_C PERFTOOLS_DLL_DECL int getpagesize(); /* in port.cc */
/* ----------------------------------- OTHER */