Avoid potential negative array index access to cached text.
[LibreOffice.git] / sal / inc / oslmemory.h
blobfa102d6b02f6c037b1cdfda534d40bca76147b60
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SAL_INC_INTERNAL_OSLMEMORY_H
11 #define INCLUDED_SAL_INC_INTERNAL_OSLMEMORY_H
13 #include <sal/types.h>
15 #if defined __cplusplus
16 extern "C" {
17 #endif
19 void* osl_aligned_alloc(sal_Size align, sal_Size size);
21 void osl_aligned_free(void* p);
23 #if defined __cplusplus
25 #endif
27 #endif
29 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */