VirtualBox

Changeset 53725 in vbox


Ignore:
Timestamp:
Jan 4, 2015 1:00:36 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
97503
Message:

shaderapi.c/h: ShaderInitLib() and ShaderDestroyLib() are not valid C prototypes, need to put 'void' keywords into the parentheses.

Location:
trunk/src/VBox/Devices/Graphics/shaderlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/shaderapi.c

    r53201 r53725  
    139139    pCurrentContext = (struct wined3d_context *)ctx;
    140140
    141 SHADERDECL(int) ShaderInitLib()
     141SHADERDECL(int) ShaderInitLib(void)
    142142{
    143143    struct wined3d_gl_info *gl_info = &adapter.gl_info;
     
    164164}
    165165
    166 SHADERDECL(int) ShaderDestroyLib()
     166SHADERDECL(int) ShaderDestroyLib(void)
    167167{
    168168    return VINF_SUCCESS;
  • trunk/src/VBox/Devices/Graphics/shaderlib/shaderlib.h

    r53201 r53725  
    1 #ifndef __SHADERLIB_H__
    2 #define __SHADERLIB_H__
     1/* $Id$ */
     2/** @file
     3 * shaderlib -- interface to WINE's Direct3D shader functions
     4 */
     5
     6/*
     7 * Copyright (C) 2014-2015 Oracle Corporation
     8 *
     9 * This file is part of VirtualBox Open Source Edition (OSE), as
     10 * available from http://www.virtualbox.org. This file is free software;
     11 * you can redistribute it and/or modify it under the terms of the GNU
     12 * General Public License (GPL) as published by the Free Software
     13 * Foundation, in version 2 as it comes in the "COPYING" file of the
     14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     16 */
     17
     18
     19#ifndef ___shaderlib_h___
     20#define ___shaderlib_h___
    321
    422#include <VBox/cdefs.h>
    523
    6 #ifdef __cplusplus
    7 extern "C" {
    8 #endif
     24RT_C_DECLS_BEGIN
    925
    1026#ifdef IN_SHADERLIB_STATIC
    11 #  define SHADERDECL(type)           DECLHIDDEN(type) RTCALL
     27# define SHADERDECL(type)           DECLHIDDEN(type) RTCALL
    1228#else
    13 #  define SHADERDECL(type)           DECLEXPORT(type) RTCALL
     29# define SHADERDECL(type)           DECLEXPORT(type) RTCALL
    1430#endif
    1531
    1632
    17 SHADERDECL(int) ShaderInitLib();
    18 SHADERDECL(int) ShaderDestroyLib();
     33SHADERDECL(int) ShaderInitLib(void);
     34SHADERDECL(int) ShaderDestroyLib(void);
    1935
    2036SHADERDECL(int) ShaderContextCreate(void **ppShaderContext);
     
    4258SHADERDECL(int) ShaderTransformProjection(unsigned cxViewPort, unsigned cyViewPort, float matrix[16]);
    4359
    44 #ifdef __cplusplus
    45 }
    46 #endif
     60RT_C_DECLS_END
    4761
    48 #endif /* __SHADERLIB_H__ */
     62#endif /* !___shaderlib_h___ */
     63
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette