Skip to content

Commit ba7bf75

Browse files
committed
Fix compilation on Linux
1 parent 46c0670 commit ba7bf75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modelica_DeviceDrivers/Resources/Include/MDDJoystick.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ DllExport void MDD_joystickDestructor(void* jsObj) {
173173
}
174174

175175
void MDD_joystickGetData(void* jsObj, double * pdAxes, int * piButtons, int * piPOV) {
176+
int i;
176177
MDDJoystick* js = (MDDJoystick*) jsObj;
177178
if (js) {
178179
struct js_event jse;
179-
int i;
180180

181181
while (read(js->fd, &jse, sizeof(struct js_event)) == sizeof(struct js_event)) {
182182
/*printf("Event: type %d, time %d, number %d, value %d\n",

0 commit comments

Comments
 (0)