Fixed build error
authorSam Lantinga <slouken@libsdl.org>
Wed, 17 Jul 2019 16:47:19 -0700
changeset 12948c055adbafa82
parent 12947 6007ef246c5e
child 12949 210165cb89ce
Fixed build error
src/hidapi/mac/hid.c
     1.1 --- a/src/hidapi/mac/hid.c	Wed Jul 17 16:47:17 2019 -0700
     1.2 +++ b/src/hidapi/mac/hid.c	Wed Jul 17 16:47:19 2019 -0700
     1.3 @@ -130,7 +130,7 @@
     1.4  };
     1.5  
     1.6  static 	IOHIDManagerRef hid_mgr = 0x0;
     1.7 -static 	hid_device_list_node *device_list = 0x0;
     1.8 +static 	struct hid_device_list_node *device_list = 0x0;
     1.9  
    1.10  static hid_device *new_hid_device(void)
    1.11  {
    1.12 @@ -186,7 +186,7 @@
    1.13      		struct hid_device_list_node *node = device_list;
    1.14      		while (node) {
    1.15      			if (node->next && node->next->dev == dev) {
    1.16 -    				hid_device_list_node *new_next = node->next->next;
    1.17 +    				struct hid_device_list_node *new_next = node->next->next;
    1.18      				free(node->next);
    1.19      				node->next = new_next;
    1.20      				break;
    1.21 @@ -581,7 +581,7 @@
    1.22  	// hid_device's so that the one being removed can be checked against
    1.23  	// the list to see if it really hasn't been closed yet and needs to
    1.24  	// be dealt with here.
    1.25 -	hid_device_list_node *node = device_list;
    1.26 +	struct hid_device_list_node *node = device_list;
    1.27  	while (node) {
    1.28  		if (node->dev == dev) {
    1.29  			dev->disconnected = 1;
    1.30 @@ -768,7 +768,7 @@
    1.31  													   &hid_report_callback, dev);
    1.32  				IOHIDDeviceRegisterRemovalCallback(dev->device_handle, hid_device_removal_callback, dev);
    1.33  
    1.34 -				hid_device_list_node *node = (hid_device_list_node *)calloc(1, sizeof(hid_device_list_node));
    1.35 +				struct hid_device_list_node *node = (struct hid_device_list_node *)calloc(1, sizeof(struct hid_device_list_node));
    1.36  				node->dev = dev;
    1.37  				node->next = device_list;
    1.38  				device_list = node;