<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:3d24918f-babe-48ad-ae38-33043153b8ca,g:492b23e8-80ce-473c-b62a-383f84fd75bf-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.glad.com/role/Cover" xlink:type="simple" xlink:href="glad-20240630.xsd#Cover"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/Cover" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentInformationTable_b2151476-5d6b-4177-b7b9-82dadadfc6d2" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentInformationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentInformationTable_b2151476-5d6b-4177-b7b9-82dadadfc6d2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_b2151476-5d6b-4177-b7b9-82dadadfc6d2" xlink:to="loc_us-gaap_StatementClassOfStockAxis_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9" xlink:to="loc_us-gaap_ClassOfStockDomain_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_4e463403-c8a5-4272-9849-93db1f195781" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_7a9e446f-6cb9-4d88-9e44-8c48b1d648f9" xlink:to="loc_us-gaap_ClassOfStockDomain_4e463403-c8a5-4272-9849-93db1f195781" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_54fcac27-1c03-4707-9ee4-39ad2fb97811" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4e463403-c8a5-4272-9849-93db1f195781" xlink:to="loc_us-gaap_CommonStockMember_54fcac27-1c03-4707-9ee4-39ad2fb97811" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A7.75NotesDue202802Member_615138b0-9439-4003-838e-19af91243ef4" xlink:href="glad-20240630.xsd#glad_A7.75NotesDue202802Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_4e463403-c8a5-4272-9849-93db1f195781" xlink:to="loc_glad_A7.75NotesDue202802Member_615138b0-9439-4003-838e-19af91243ef4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentType_30d3282a-a09b-4d2c-8114-81e559e34e7c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentType"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentType_30d3282a-a09b-4d2c-8114-81e559e34e7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentQuarterlyReport_4b35a713-3616-4c27-8f79-e62176128daa" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentQuarterlyReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentQuarterlyReport_4b35a713-3616-4c27-8f79-e62176128daa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentPeriodEndDate_4e1ff94f-5cf7-436f-8c47-8d837d19b608" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentPeriodEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentPeriodEndDate_4e1ff94f-5cf7-436f-8c47-8d837d19b608" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentTransitionReport_4c7b91b0-3d37-4e43-9182-6ba01e82269d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentTransitionReport"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentTransitionReport_4c7b91b0-3d37-4e43-9182-6ba01e82269d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFileNumber_84127ea5-45ee-432f-aac1-450d40bcb6d1" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFileNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityFileNumber_84127ea5-45ee-432f-aac1-450d40bcb6d1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityRegistrantName_26df4c80-5892-4eb1-b0e0-c591679910f9" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityRegistrantName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityRegistrantName_26df4c80-5892-4eb1-b0e0-c591679910f9" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityIncorporationStateCountryCode_49e3d13a-be75-4f8a-9841-45592c9aa4aa" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityIncorporationStateCountryCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityIncorporationStateCountryCode_49e3d13a-be75-4f8a-9841-45592c9aa4aa" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityTaxIdentificationNumber_7241f876-6f04-4151-a02c-6b549d85fd84" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityTaxIdentificationNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityTaxIdentificationNumber_7241f876-6f04-4151-a02c-6b549d85fd84" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine1_e044171a-b91c-4443-bace-90ec04ab7b2e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressAddressLine1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityAddressAddressLine1_e044171a-b91c-4443-bace-90ec04ab7b2e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressAddressLine2_7f69432d-b6cd-47bf-9124-6dff7637e607" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressAddressLine2"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityAddressAddressLine2_7f69432d-b6cd-47bf-9124-6dff7637e607" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressCityOrTown_5159ddaf-a9c7-4d9a-a768-c4c2d183e601" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressCityOrTown"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityAddressCityOrTown_5159ddaf-a9c7-4d9a-a768-c4c2d183e601" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressStateOrProvince_d35785c3-aacc-4681-9921-57921558d4ed" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressStateOrProvince"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityAddressStateOrProvince_d35785c3-aacc-4681-9921-57921558d4ed" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityAddressPostalZipCode_3d6ce4f7-ffcb-47e7-81b2-2cdd8bf17fc3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityAddressPostalZipCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityAddressPostalZipCode_3d6ce4f7-ffcb-47e7-81b2-2cdd8bf17fc3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CityAreaCode_ba0e7fc8-b96e-4b07-9c18-5690fb5c983d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CityAreaCode"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_CityAreaCode_ba0e7fc8-b96e-4b07-9c18-5690fb5c983d" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_LocalPhoneNumber_993cc4bd-28a1-41b7-b1b5-eca1f29cf948" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_LocalPhoneNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_LocalPhoneNumber_993cc4bd-28a1-41b7-b1b5-eca1f29cf948" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_Security12bTitle_755522a5-57a5-4c8b-934d-53e4ae05eab4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_Security12bTitle"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_Security12bTitle_755522a5-57a5-4c8b-934d-53e4ae05eab4" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_TradingSymbol_ccf970af-cbb1-4483-8f19-40af4c616ffc" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_TradingSymbol"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_TradingSymbol_ccf970af-cbb1-4483-8f19-40af4c616ffc" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_SecurityExchangeName_498eea6e-cece-4ba5-8263-f34abd0064e4" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_SecurityExchangeName"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_SecurityExchangeName_498eea6e-cece-4ba5-8263-f34abd0064e4" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCurrentReportingStatus_b48022b9-91d0-4c42-b8b4-5304b7b05d26" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCurrentReportingStatus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityCurrentReportingStatus_b48022b9-91d0-4c42-b8b4-5304b7b05d26" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityInteractiveDataCurrent_5c2a4569-4636-4751-9e13-10287029fe5e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityInteractiveDataCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityInteractiveDataCurrent_5c2a4569-4636-4751-9e13-10287029fe5e" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityFilerCategory_5eb0e69b-f00f-4217-8d71-072a4fdfc69d" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityFilerCategory"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityFilerCategory_5eb0e69b-f00f-4217-8d71-072a4fdfc69d" xlink:type="arc" order="20"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntitySmallBusiness_bc696be8-b6a3-45ea-8ae2-dbc4ce83a0b3" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntitySmallBusiness"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntitySmallBusiness_bc696be8-b6a3-45ea-8ae2-dbc4ce83a0b3" xlink:type="arc" order="21"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityEmergingGrowthCompany_4ce3535f-7c0a-450a-8e32-61125a7bd910" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityEmergingGrowthCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityEmergingGrowthCompany_4ce3535f-7c0a-450a-8e32-61125a7bd910" xlink:type="arc" order="22"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityShellCompany_136fc3b5-dfb7-4ba0-8e5c-69a7bb82435f" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityShellCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityShellCompany_136fc3b5-dfb7-4ba0-8e5c-69a7bb82435f" xlink:type="arc" order="23"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_ee780007-412e-49e3-bdc4-62fd095a51c2" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_ee780007-412e-49e3-bdc4-62fd095a51c2" xlink:type="arc" order="24"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_EntityCentralIndexKey_61daf53b-8148-4afb-9871-e38c3a6caa0a" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_EntityCentralIndexKey"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_EntityCentralIndexKey_61daf53b-8148-4afb-9871-e38c3a6caa0a" xlink:type="arc" order="25"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_CurrentFiscalYearEndDate_80f1888a-de90-42d8-ad0b-41aae88c9471" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_CurrentFiscalYearEndDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_CurrentFiscalYearEndDate_80f1888a-de90-42d8-ad0b-41aae88c9471" xlink:type="arc" order="26"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalYearFocus_8f9e75a1-cd40-4ccb-a0e3-73fcbddec09e" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalYearFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentFiscalYearFocus_8f9e75a1-cd40-4ccb-a0e3-73fcbddec09e" xlink:type="arc" order="27"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_DocumentFiscalPeriodFocus_b3fcf5d2-87d7-4115-9222-e4192670ac8c" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_DocumentFiscalPeriodFocus"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_DocumentFiscalPeriodFocus_b3fcf5d2-87d7-4115-9222-e4192670ac8c" xlink:type="arc" order="28"/>
    <link:loc xlink:type="locator" xlink:label="loc_dei_AmendmentFlag_725226ae-7f36-4a4b-ba34-c5df2ba66bb8" xlink:href="https://xbrl.sec.gov/dei/2024/dei-2024.xsd#dei_AmendmentFlag"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_27f79c02-496d-4e2c-a886-3194a6d46147" xlink:to="loc_dei_AmendmentFlag_725226ae-7f36-4a4b-ba34-c5df2ba66bb8" xlink:type="arc" order="29"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIES" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_31cf054a-403d-45ea-9fd2-e6c131f00a8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_StatementTable_31cf054a-403d-45ea-9fd2-e6c131f00a8e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_616f729c-4d8e-4436-b1bf-d96a458c78fe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_31cf054a-403d-45ea-9fd2-e6c131f00a8e" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_616f729c-4d8e-4436-b1bf-d96a458c78fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_616f729c-4d8e-4436-b1bf-d96a458c78fe_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_616f729c-4d8e-4436-b1bf-d96a458c78fe" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_616f729c-4d8e-4436-b1bf-d96a458c78fe_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_9512155d-9d3a-4600-9899-74f15c14d937" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_616f729c-4d8e-4436-b1bf-d96a458c78fe" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_9512155d-9d3a-4600-9899-74f15c14d937" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_43c7a22a-57a8-4c1c-8189-935e30183fed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_9512155d-9d3a-4600-9899-74f15c14d937" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_43c7a22a-57a8-4c1c-8189-935e30183fed" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_9374002a-6aed-4fab-baab-92375454ef6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_9512155d-9d3a-4600-9899-74f15c14d937" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_9374002a-6aed-4fab-baab-92375454ef6e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_65c400d3-c92f-4594-9f78-2e9921429f96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_9512155d-9d3a-4600-9899-74f15c14d937" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_65c400d3-c92f-4594-9f78-2e9921429f96" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_1313a610-65eb-4c3b-a757-0f88bf48a6c8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_31cf054a-403d-45ea-9fd2-e6c131f00a8e" xlink:to="loc_srt_CounterpartyNameAxis_1313a610-65eb-4c3b-a757-0f88bf48a6c8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_1313a610-65eb-4c3b-a757-0f88bf48a6c8_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_1313a610-65eb-4c3b-a757-0f88bf48a6c8" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_1313a610-65eb-4c3b-a757-0f88bf48a6c8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_54a2825a-1aa8-40aa-8d14-a075c3df331f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_1313a610-65eb-4c3b-a757-0f88bf48a6c8" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_54a2825a-1aa8-40aa-8d14-a075c3df331f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdviserMember_f184d3d1-97b8-448f-99e8-b6b9c0812a2d" xlink:href="glad-20240630.xsd#glad_TheAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_54a2825a-1aa8-40aa-8d14-a075c3df331f" xlink:to="loc_glad_TheAdviserMember_f184d3d1-97b8-448f-99e8-b6b9c0812a2d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdministratorMember_f4392ded-5069-4277-bc57-ebb3455fb531" xlink:href="glad-20240630.xsd#glad_TheAdministratorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_54a2825a-1aa8-40aa-8d14-a075c3df331f" xlink:to="loc_glad_TheAdministratorMember_f4392ded-5069-4277-bc57-ebb3455fb531" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b6866747-f13e-464b-950d-d982b79a70b9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_31cf054a-403d-45ea-9fd2-e6c131f00a8e" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b6866747-f13e-464b-950d-d982b79a70b9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_b6866747-f13e-464b-950d-d982b79a70b9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b6866747-f13e-464b-950d-d982b79a70b9" xlink:to="loc_us-gaap_RelatedPartyDomain_b6866747-f13e-464b-950d-d982b79a70b9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_4acf418f-c6e2-43f2-a862-8042cbc4c9ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_b6866747-f13e-464b-950d-d982b79a70b9" xlink:to="loc_us-gaap_RelatedPartyDomain_4acf418f-c6e2-43f2-a862-8042cbc4c9ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_3c838578-ba57-41bf-b472-f77448e7336d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_4acf418f-c6e2-43f2-a862-8042cbc4c9ea" xlink:to="loc_us-gaap_RelatedPartyMember_3c838578-ba57-41bf-b472-f77448e7336d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_7d63e0c6-ff48-4f62-93db-1e08e2c52db6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_7d63e0c6-ff48-4f62-93db-1e08e2c52db6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_4bd81f6e-4b73-4f81-adf3-d200db439cd5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_4bd81f6e-4b73-4f81-adf3-d200db439cd5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_9dc5beaf-24a3-4491-a1fe-65018dcfb556" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_9dc5beaf-24a3-4491-a1fe-65018dcfb556" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestReceivable_394d851a-9f53-4207-bc0a-8495439a2701" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_InterestReceivable_394d851a-9f53-4207-bc0a-8495439a2701" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DueFromAdministrativeAgent_a01b9ad7-802f-40e9-8abd-f80f97ff0923" xlink:href="glad-20240630.xsd#glad_DueFromAdministrativeAgent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_glad_DueFromAdministrativeAgent_a01b9ad7-802f-40e9-8abd-f80f97ff0923" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsNet_c462de61-c575-40c9-b0d3-81cdc9b6cad0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFinanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_DeferredFinanceCostsNet_c462de61-c575-40c9-b0d3-81cdc9b6cad0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_0ee67638-2e33-460f-893e-b1677318204f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_OtherAssets_0ee67638-2e33-460f-893e-b1677318204f" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_439817f4-1f41-4f4e-810e-a385c79f1816" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_e9dfd9b2-f633-483e-994d-33d200e04957" xlink:to="loc_us-gaap_Assets_439817f4-1f41-4f4e-810e-a385c79f1816" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_61ae9fad-7901-4266-b25d-5b0b54145d27" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_61ae9fad-7901-4266-b25d-5b0b54145d27" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayable_f8636a5e-d4ab-4e53-b5e8-22f8ed7eb1c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_NotesPayable_f8636a5e-d4ab-4e53-b5e8-22f8ed7eb1c2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent_a06359c4-944d-4a5c-af53-a6221808cc16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrentAndNoncurrent_a06359c4-944d-4a5c-af53-a6221808cc16" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_ce6c5ad1-96af-46c6-ba02-0b6a1fd8a326" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_ce6c5ad1-96af-46c6-ba02-0b6a1fd8a326" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_7abb1adc-1584-46bc-9232-6a7d1951cac4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_7abb1adc-1584-46bc-9232-6a7d1951cac4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_92316bde-8835-4cf9-bf8b-9d8fef22a325" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_OtherLiabilities_92316bde-8835-4cf9-bf8b-9d8fef22a325" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_94d7778c-b359-45ae-a6a0-1fed01cea39e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_cfa409f3-215e-4789-a96c-f37518fd36ca" xlink:to="loc_us-gaap_Liabilities_94d7778c-b359-45ae-a6a0-1fed01cea39e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_2ef8e76d-d801-4c79-a8f1-aa98706fee24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_CommitmentsAndContingencies_2ef8e76d-d801-4c79-a8f1-aa98706fee24" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_7e23526e-8df5-4cdb-b2db-06c0cc90879b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityCarryingAmountAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_TemporaryEquityCarryingAmountAttributableToParent_7e23526e-8df5-4cdb-b2db-06c0cc90879b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_16547cd7-9de1-40c3-ba75-dff8c4bbd42a" xlink:to="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_25f15cc1-8689-48f1-b783-a998758a128c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_CommonStockValue_25f15cc1-8689-48f1-b783-a998758a128c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_ed42c65d-0882-425c-a1d5-7b9a7c08bc70" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_AdditionalPaidInCapital_ed42c65d-0882-425c-a1d5-7b9a7c08bc70" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation_be0be583-4dd3-477a-9154-14ae89932221" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedAppreciationDepreciation_be0be583-4dd3-477a-9154-14ae89932221" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss_94052d33-3451-437c-8f7d-aa061fa916b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_InvestmentCompanyDistributableEarningsLossAccumulatedOrdinaryIncomeLoss_94052d33-3451-437c-8f7d-aa061fa916b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyAccumulatedNetRealizedGainInExcessOfDistribution_1d174290-4d50-4e86-bf90-84bca0fce602" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyAccumulatedNetRealizedGainInExcessOfDistribution"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_glad_InvestmentCompanyAccumulatedNetRealizedGainInExcessOfDistribution_1d174290-4d50-4e86-bf90-84bca0fce602" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ee3a2897-2174-425b-a438-e10fa55f3cf0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ee3a2897-2174-425b-a438-e10fa55f3cf0" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_95b6dd40-0ca5-4d5f-b52f-82b51761c730" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_StockholdersEquity_95b6dd40-0ca5-4d5f-b52f-82b51761c730" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_6f52cd10-a02e-4601-af77-058b904c22a0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_AssetsNet_6f52cd10-a02e-4601-af77-058b904c22a0" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetAssetValuePerShare_89fe7492-0a12-4909-9a1d-b41444f46690" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetAssetValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_f692723a-1bad-4c7c-9d7d-ef610daad80f" xlink:to="loc_us-gaap_NetAssetValuePerShare_89fe7492-0a12-4909-9a1d-b41444f46690" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFASSETSANDLIABILITIESParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_4e1a6a69-d02f-42dd-b7e2-eae49c1937c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:to="loc_us-gaap_StatementTable_4e1a6a69-d02f-42dd-b7e2-eae49c1937c0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_f1adbd78-6f18-4d13-b585-b0192614a22e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4e1a6a69-d02f-42dd-b7e2-eae49c1937c0" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_f1adbd78-6f18-4d13-b585-b0192614a22e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_f1adbd78-6f18-4d13-b585-b0192614a22e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_f1adbd78-6f18-4d13-b585-b0192614a22e" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_f1adbd78-6f18-4d13-b585-b0192614a22e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_2802f21e-0e34-491e-b0bb-a90532d3eb1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_f1adbd78-6f18-4d13-b585-b0192614a22e" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_2802f21e-0e34-491e-b0bb-a90532d3eb1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_7844a01e-e37c-4ff8-895a-901e4208b9be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_2802f21e-0e34-491e-b0bb-a90532d3eb1a" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_7844a01e-e37c-4ff8-895a-901e4208b9be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_d1dd9339-444e-4b69-9d87-a85c6d119286" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_2802f21e-0e34-491e-b0bb-a90532d3eb1a" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_d1dd9339-444e-4b69-9d87-a85c6d119286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_2087af8d-68ac-4a64-afb9-1f3c4cabb4f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_2802f21e-0e34-491e-b0bb-a90532d3eb1a" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_2087af8d-68ac-4a64-afb9-1f3c4cabb4f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_4204e045-cb61-4a8c-b38d-3f39fcb47416" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:to="loc_us-gaap_AssetsAbstract_4204e045-cb61-4a8c-b38d-3f39fcb47416" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_3c6707a3-982f-4661-9873-783041326116" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_4204e045-cb61-4a8c-b38d-3f39fcb47416" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_3c6707a3-982f-4661-9873-783041326116" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:to="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_2b6ccab8-5780-4079-860c-5a8f33967ef3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_2b6ccab8-5780-4079-860c-5a8f33967ef3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_c73b9bed-f4ae-4b9f-9a26-eed623e8bc6b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_c73b9bed-f4ae-4b9f-9a26-eed623e8bc6b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_be3dc524-11e9-4a9b-b4d3-9929c870a8ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_be3dc524-11e9-4a9b-b4d3-9929c870a8ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_ad918446-f73f-49e4-9b8c-1d4283c49aa1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_ad918446-f73f-49e4-9b8c-1d4283c49aa1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesIssued_a6df85f6-6e02-4703-958c-395684265bcb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_TemporaryEquitySharesIssued_a6df85f6-6e02-4703-958c-395684265bcb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_7938be95-3f5e-4f8c-bb78-73e0f97aaac3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAbstract_98f1c99d-a4b8-4fbe-9929-21ff4265ae47" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_7938be95-3f5e-4f8c-bb78-73e0f97aaac3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:to="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_64a61c02-d28c-4b47-a3ac-cf7e9a7c9171" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_64a61c02-d28c-4b47-a3ac-cf7e9a7c9171" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_361c4082-fb28-4fec-bd84-1f815fcde3da" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_361c4082-fb28-4fec-bd84-1f815fcde3da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_01e63666-3452-40bf-baa5-3a3979b42ab4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:to="loc_us-gaap_CommonStockSharesIssued_01e63666-3452-40bf-baa5-3a3979b42ab4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_78edd136-f3e1-441f-a2dd-52d0d55dbce2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_90ea2e0c-5ad0-4703-aa2a-7a5e304c0dc4" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_78edd136-f3e1-441f-a2dd-52d0d55dbce2" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_6a3ec434-ba8d-4ca1-b767-fe6eb287d637" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_45f76033-2c37-421b-9274-8a167a85830d" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_6a3ec434-ba8d-4ca1-b767-fe6eb287d637" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_562df952-9912-47e0-a873-d50141c69c1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_StatementTable_562df952-9912-47e0-a873-d50141c69c1a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_2ae7f036-abc2-42cc-932c-e08fd9f7e60a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_562df952-9912-47e0-a873-d50141c69c1a" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_2ae7f036-abc2-42cc-932c-e08fd9f7e60a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_2ae7f036-abc2-42cc-932c-e08fd9f7e60a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_2ae7f036-abc2-42cc-932c-e08fd9f7e60a" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_2ae7f036-abc2-42cc-932c-e08fd9f7e60a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_2ae7f036-abc2-42cc-932c-e08fd9f7e60a" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_cf9df661-3515-462a-a528-d944539a9359" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_cf9df661-3515-462a-a528-d944539a9359" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_77a761b1-2143-4bfc-a030-bb1d490bcd5d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_77a761b1-2143-4bfc-a030-bb1d490bcd5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_ff037e2c-da41-4cf0-a3ad-7f41a31eb2ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_ff037e2c-da41-4cf0-a3ad-7f41a31eb2ea" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestmentCompaniesMember_4d0ca9b7-c7f6-4021-93f3-dc1fe902cdea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherInvestmentCompaniesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_34d8a982-ba99-4a3e-a19c-afaafe0ff919" xlink:to="loc_us-gaap_OtherInvestmentCompaniesMember_4d0ca9b7-c7f6-4021-93f3-dc1fe902cdea" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_72ecd9de-07a7-4d90-b9f1-31ef2e425e64" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_562df952-9912-47e0-a873-d50141c69c1a" xlink:to="loc_us-gaap_InvestmentTypeAxis_72ecd9de-07a7-4d90-b9f1-31ef2e425e64" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_72ecd9de-07a7-4d90-b9f1-31ef2e425e64_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_72ecd9de-07a7-4d90-b9f1-31ef2e425e64" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_72ecd9de-07a7-4d90-b9f1-31ef2e425e64_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_f710a8e3-7253-4085-b4a8-e4029c7e8dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_72ecd9de-07a7-4d90-b9f1-31ef2e425e64" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_f710a8e3-7253-4085-b4a8-e4029c7e8dc4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_13592c6c-ef09-41bf-865e-dc7695a8e286" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_f710a8e3-7253-4085-b4a8-e4029c7e8dc4" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_13592c6c-ef09-41bf-865e-dc7695a8e286" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenuesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_bbc63157-21dc-486f-ba31-2f000e95a8c8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_bbc63157-21dc-486f-ba31-2f000e95a8c8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_25730b54-5495-4791-b914-7c220054fd57" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_25730b54-5495-4791-b914-7c220054fd57" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperating_e7573fee-6566-4ddc-854b-e2c610310cff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_InterestIncomeOperating_e7573fee-6566-4ddc-854b-e2c610310cff" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_ed8a3d87-aac0-416f-afc1-bc7267e992ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FeeIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_FeeIncome_ed8a3d87-aac0-416f-afc1-bc7267e992ff" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendIncomeOperatingPaidInCash_38e98a22-66e3-4369-b5a6-c005fc14e446" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendIncomeOperatingPaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_DividendIncomeOperatingPaidInCash_38e98a22-66e3-4369-b5a6-c005fc14e446" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_d8466bff-749b-4e0e-8674-30df4f6b7f89" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_OtherIncome_d8466bff-749b-4e0e-8674-30df4f6b7f89" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_d7f1b7ef-0775-4939-a4b6-697a44397710" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesAbstract_4be97c85-3d66-4940-a3b6-505d14b45694" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_d7f1b7ef-0775-4939-a4b6-697a44397710" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingExpensesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementFeeExpense_c970c35e-6072-4aac-9830-5771716635ce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ManagementFeeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_ManagementFeeExpense_c970c35e-6072-4aac-9830-5771716635ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoanProcessingFee_a310442f-35b2-4f4e-8bd2-32dd2c0c154c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LoanProcessingFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_LoanProcessingFee_a310442f-35b2-4f4e-8bd2-32dd2c0c154c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncentiveFeeExpense_48117159-06c2-4109-a016-1b94a473298e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncentiveFeeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_IncentiveFeeExpense_48117159-06c2-4109-a016-1b94a473298e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdministrativeFeesExpense_99952e1b-1eff-43d3-b286-d3fb31b73678" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdministrativeFeesExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_AdministrativeFeesExpense_99952e1b-1eff-43d3-b286-d3fb31b73678" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseBorrowings_3c47aaf8-ab72-4dec-81e4-97ece9195972" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseBorrowings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_InterestExpenseBorrowings_3c47aaf8-ab72-4dec-81e4-97ece9195972" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_be2d988e-778b-477f-84e2-74805cec2ff2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_be2d988e-778b-477f-84e2-74805cec2ff2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfessionalFees_5fa7c00e-5953-4040-b9a9-de71c623e2df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProfessionalFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_ProfessionalFees_5fa7c00e-5953-4040-b9a9-de71c623e2df" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherGeneralAndAdministrativeExpense_6e64e254-0c9b-440a-ba57-07fb84971d37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherGeneralAndAdministrativeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_OtherGeneralAndAdministrativeExpense_6e64e254-0c9b-440a-ba57-07fb84971d37" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_2ec520c0-eea0-4b4a-a3df-4e8218fb06a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_2ec520c0-eea0-4b4a-a3df-4e8218fb06a6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyContractualFeeWaived_8e5240f7-f874-404c-82e2-72d04fa0209b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyContractualFeeWaived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_InvestmentCompanyContractualFeeWaived_8e5240f7-f874-404c-82e2-72d04fa0209b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyVoluntaryFeeWaived_99b4faab-86c1-47de-b7a0-b9b72d753e34" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyVoluntaryFeeWaived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_InvestmentCompanyVoluntaryFeeWaived_99b4faab-86c1-47de-b7a0-b9b72d753e34" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_af548feb-ec88-468a-913b-c6ec2fa1fdd2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_1351cd72-ff63-4961-a7e1-3794f622ca83" xlink:to="loc_us-gaap_InvestmentCompanyExpenseAfterReductionOfFeeWaiverAndReimbursement_af548feb-ec88-468a-913b-c6ec2fa1fdd2" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_47adc80f-a39c-4dfd-9ff5-6995dd686c7d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetInvestmentIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_NetInvestmentIncome_47adc80f-a39c-4dfd-9ff5-6995dd686c7d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NetRealizedGainsLossesAbstract_57dcb286-12d6-4b4b-b49a-a80ffa68ca17" xlink:href="glad-20240630.xsd#glad_NetRealizedGainsLossesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_glad_NetRealizedGainsLossesAbstract_57dcb286-12d6-4b4b-b49a-a80ffa68ca17" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_daa702a8-f15b-464d-87df-edecdf679803" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_NetRealizedGainsLossesAbstract_57dcb286-12d6-4b4b-b49a-a80ffa68ca17" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_daa702a8-f15b-464d-87df-edecdf679803" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_57eaa0ec-0703-4634-a042-4e53e11be845" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_NetRealizedGainsLossesAbstract_57dcb286-12d6-4b4b-b49a-a80ffa68ca17" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_57eaa0ec-0703-4634-a042-4e53e11be845" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionOperatingAfterTax_c36e228c-ee87-4b6b-b638-4ce18b1e03e9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionOperatingAfterTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_NetRealizedGainsLossesAbstract_57dcb286-12d6-4b4b-b49a-a80ffa68ca17" xlink:to="loc_us-gaap_RealizedAndUnrealizedGainLossInvestmentDerivativeAndForeignCurrencyTransactionOperatingAfterTax_c36e228c-ee87-4b6b-b638-4ce18b1e03e9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_882fec85-7a99-4735-996d-0dece3abab7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_DividendsPreferredStock_882fec85-7a99-4735-996d-0dece3abab7e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_d835ad05-122b-4a9b-b8b3-122a087f9fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_NetIncomeLoss_d835ad05-122b-4a9b-b8b3-122a087f9fe4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasic_a7bb32c5-1242-4ec8-b53a-669c3c387b99" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:to="loc_us-gaap_EarningsPerShareBasic_a7bb32c5-1242-4ec8-b53a-669c3c387b99" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareDiluted_e3f90924-fa13-4078-81ef-999ddddca49f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EarningsPerShareDiluted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:to="loc_us-gaap_EarningsPerShareDiluted_e3f90924-fa13-4078-81ef-999ddddca49f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_5781214d-5fb5-46c1-bc53-1f7c34ca163b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerBasicShare_5781214d-5fb5-46c1-bc53-1f7c34ca163b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_19a5a33b-547c-47ee-b2bc-e606df50092a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareAbstract_8567414e-0242-460c-9a38-3b734fb67413" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare_19a5a33b-547c-47ee-b2bc-e606df50092a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_bc72e0ec-85d9-4514-a8da-1a2918930d6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_bc72e0ec-85d9-4514-a8da-1a2918930d6c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_004c160d-3746-4820-89f0-6a7a592d8611" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_fa982b30-e45a-491a-8a96-29390c204cff" xlink:to="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_004c160d-3746-4820-89f0-6a7a592d8611" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_95403120-17f9-4963-be87-960ea128b12d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_StatementTable_95403120-17f9-4963-be87-960ea128b12d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_589438e9-8c97-4734-9491-94bd504409c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_95403120-17f9-4963-be87-960ea128b12d" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_589438e9-8c97-4734-9491-94bd504409c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_589438e9-8c97-4734-9491-94bd504409c0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_589438e9-8c97-4734-9491-94bd504409c0" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_589438e9-8c97-4734-9491-94bd504409c0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_9f7112b4-405b-49d8-8aa5-ccdc75a8df96" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_589438e9-8c97-4734-9491-94bd504409c0" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_9f7112b4-405b-49d8-8aa5-ccdc75a8df96" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentUnaffiliatedAndAffiliatedIssuerExcludingOtherMember_1502ec92-683f-449a-aec1-267afae17e3c" xlink:href="glad-20240630.xsd#glad_InvestmentUnaffiliatedAndAffiliatedIssuerExcludingOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_9f7112b4-405b-49d8-8aa5-ccdc75a8df96" xlink:to="loc_glad_InvestmentUnaffiliatedAndAffiliatedIssuerExcludingOtherMember_1502ec92-683f-449a-aec1-267afae17e3c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestmentCompaniesMember_21cde260-002a-4bfa-9f18-d842dfae5d46" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherInvestmentCompaniesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_9f7112b4-405b-49d8-8aa5-ccdc75a8df96" xlink:to="loc_us-gaap_OtherInvestmentCompaniesMember_21cde260-002a-4bfa-9f18-d842dfae5d46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_6d55078e-798f-4202-9439-c9cd4d9730bc" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_95403120-17f9-4963-be87-960ea128b12d" xlink:to="loc_srt_CounterpartyNameAxis_6d55078e-798f-4202-9439-c9cd4d9730bc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_6d55078e-798f-4202-9439-c9cd4d9730bc_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_6d55078e-798f-4202-9439-c9cd4d9730bc" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_6d55078e-798f-4202-9439-c9cd4d9730bc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e91ca5ae-f255-4b11-bbe8-4c99715c8172" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_6d55078e-798f-4202-9439-c9cd4d9730bc" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e91ca5ae-f255-4b11-bbe8-4c99715c8172" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdviserMember_a94c926c-3aff-4934-80c7-77d4f1629ad0" xlink:href="glad-20240630.xsd#glad_TheAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e91ca5ae-f255-4b11-bbe8-4c99715c8172" xlink:to="loc_glad_TheAdviserMember_a94c926c-3aff-4934-80c7-77d4f1629ad0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdministratorMember_284f27e8-550a-4dc3-b238-c3770e77f58a" xlink:href="glad-20240630.xsd#glad_TheAdministratorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e91ca5ae-f255-4b11-bbe8-4c99715c8172" xlink:to="loc_glad_TheAdministratorMember_284f27e8-550a-4dc3-b238-c3770e77f58a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_7ec01276-54fa-44a3-835a-28122f8dfd9d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_7ec01276-54fa-44a3-835a-28122f8dfd9d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_48531874-81b7-4d9f-a68d-c4e34423d2e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_7ec01276-54fa-44a3-835a-28122f8dfd9d" xlink:to="loc_us-gaap_NetIncomeLoss_48531874-81b7-4d9f-a68d-c4e34423d2e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:href="glad-20240630.xsd#glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_7ec01276-54fa-44a3-835a-28122f8dfd9d" xlink:to="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_201aa796-fabd-4cda-968e-1ab0d71eb184" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_201aa796-fabd-4cda-968e-1ab0d71eb184" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ProceedsFromPrincipalRepaymentsOfInvestmentsOperatingActivity_1198c970-2d3c-49e5-989c-21a2da8ec150" xlink:href="glad-20240630.xsd#glad_ProceedsFromPrincipalRepaymentsOfInvestmentsOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_glad_ProceedsFromPrincipalRepaymentsOfInvestmentsOperatingActivity_1198c970-2d3c-49e5-989c-21a2da8ec150" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ProceedsFromSaleAndRecapitalizationOfInvestmentsNetOperatingActivity_05197fca-106f-4420-8606-3bba30684cdc" xlink:href="glad-20240630.xsd#glad_ProceedsFromSaleAndRecapitalizationOfInvestmentsNetOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_glad_ProceedsFromSaleAndRecapitalizationOfInvestmentsNetOperatingActivity_05197fca-106f-4420-8606-3bba30684cdc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_IncreaseInInvestmentsDueToPIKInterestOrOther_36453eb6-7732-4216-bfbf-f8ed212ebe06" xlink:href="glad-20240630.xsd#glad_IncreaseInInvestmentsDueToPIKInterestOrOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_glad_IncreaseInInvestmentsDueToPIKInterestOrOther_36453eb6-7732-4216-bfbf-f8ed212ebe06" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NetChangeInPremiumsDiscountsAndAmortization_cfb4beb8-6169-4357-a197-5f0743fd3f0e" xlink:href="glad-20240630.xsd#glad_NetChangeInPremiumsDiscountsAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_glad_NetChangeInPremiumsDiscountsAndAmortization_cfb4beb8-6169-4357-a197-5f0743fd3f0e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_419aebbe-153d-49d1-bd3c-19c965a7d28b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesRealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesRealizedGainLoss_419aebbe-153d-49d1-bd3c-19c965a7d28b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_5098a9cc-fb26-4b80-896b-5168cb1ac2bd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_us-gaap_DebtAndEquitySecuritiesUnrealizedGainLoss_5098a9cc-fb26-4b80-896b-5168cb1ac2bd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_ec8e7c2e-158c-4228-9843-66849397e71f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_ec8e7c2e-158c-4228-9843-66849397e71f" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_AdjustmentsToReconcileNetAssetsFromOperationsToCashProvidedByUsedInOperatingActivitiesAbstract_9240edd1-2157-4257-950f-36591982a143" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_1999c288-2a66-4ac9-b381-19b712582c32" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet_1999c288-2a66-4ac9-b381-19b712582c32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_IncreaseDecreaseInDueFromAdministrativeAgent_f6b3fedf-f75e-465f-bab8-397776e13614" xlink:href="glad-20240630.xsd#glad_IncreaseDecreaseInDueFromAdministrativeAgent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_glad_IncreaseDecreaseInDueFromAdministrativeAgent_f6b3fedf-f75e-465f-bab8-397776e13614" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_602d0446-2860-4c20-a0e5-cb20906ae07b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_602d0446-2860-4c20-a0e5-cb20906ae07b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_51e34ba8-8f40-46d5-aefb-fd0c410201a6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_51e34ba8-8f40-46d5-aefb-fd0c410201a6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_11026938-c47f-47f8-8cea-dddf727cc7a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_11026938-c47f-47f8-8cea-dddf727cc7a8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_424e8de9-4f47-4e90-b8f7-64032dc16b56" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInDueToRelatedParties"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInDueToRelatedParties_424e8de9-4f47-4e90-b8f7-64032dc16b56" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_4ce69499-96c3-46aa-880d-8c4562a69359" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOperatingLiabilitiesAbstract_d16a5aed-2fb9-4271-af3f-9e22d95b9a1b" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_4ce69499-96c3-46aa-880d-8c4562a69359" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_52c1a413-c741-4420-9a63-d4395eedb6fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_7ec01276-54fa-44a3-835a-28122f8dfd9d" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_52c1a413-c741-4420-9a63-d4395eedb6fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_972a50cb-8c0e-4ad2-842b-d5897438adcf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_972a50cb-8c0e-4ad2-842b-d5897438adcf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_97731617-1f54-48e5-93fc-809467c7c990" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_97731617-1f54-48e5-93fc-809467c7c990" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfFinancingCosts_ad3e667c-c644-4161-9eee-9a410cd5567b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfFinancingCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_PaymentsOfFinancingCosts_ad3e667c-c644-4161-9eee-9a410cd5567b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_c8713918-0ffd-412c-9b16-fb2132d44e69" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_c8713918-0ffd-412c-9b16-fb2132d44e69" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_be379ee1-090c-43b1-ae66-006a7f2c2a19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_be379ee1-090c-43b1-ae66-006a7f2c2a19" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_1c0129e0-df7b-4f3d-9025-2a28c27c297b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_1c0129e0-df7b-4f3d-9025-2a28c27c297b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_7ca3e320-a849-47b0-8fe1-576810280241" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_7ca3e320-a849-47b0-8fe1-576810280241" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d625b798-5d3b-429a-b98a-7a5907f490ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_b604ae56-1d6a-4c33-94a1-99f488a578e2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d625b798-5d3b-429a-b98a-7a5907f490ec" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_845894af-ead1-4dcc-afc6-7d155cc524b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_845894af-ead1-4dcc-afc6-7d155cc524b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_90fbced0-2056-497e-b0a5-b08f20d5f20d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_90fbced0-2056-497e-b0a5-b08f20d5f20d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_8a96f6b7-8486-4b58-bf80-c4efd7017cba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalCashFlowElementsAbstract_a2d78b92-a3aa-47d8-89f2-2ec002993365" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SupplementalCashFlowElementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_88f55704-e8d5-422e-8463-c4849242a207" xlink:to="loc_us-gaap_SupplementalCashFlowElementsAbstract_a2d78b92-a3aa-47d8-89f2-2ec002993365" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPaidNet_9a12ef9f-7f9b-4bc0-9eb0-9be3d675ec6f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowElementsAbstract_a2d78b92-a3aa-47d8-89f2-2ec002993365" xlink:to="loc_us-gaap_InterestPaidNet_9a12ef9f-7f9b-4bc0-9eb0-9be3d675ec6f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NonCashActivitiesRelateToEstimatedTaxLiabilities_ab1ae0f2-5eb2-4d98-a2d7-1e954beadbc8" xlink:href="glad-20240630.xsd#glad_NonCashActivitiesRelateToEstimatedTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowElementsAbstract_a2d78b92-a3aa-47d8-89f2-2ec002993365" xlink:to="loc_glad_NonCashActivitiesRelateToEstimatedTaxLiabilities_ab1ae0f2-5eb2-4d98-a2d7-1e954beadbc8" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSParenthetical" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWSParenthetical"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_b1664203-b9b2-49f8-97c3-a05b98bb21c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:to="loc_us-gaap_StatementTable_b1664203-b9b2-49f8-97c3-a05b98bb21c0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81584674-aab1-4cae-9eab-4c5d75fd6617" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_b1664203-b9b2-49f8-97c3-a05b98bb21c0" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81584674-aab1-4cae-9eab-4c5d75fd6617" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_81584674-aab1-4cae-9eab-4c5d75fd6617_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81584674-aab1-4cae-9eab-4c5d75fd6617" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_81584674-aab1-4cae-9eab-4c5d75fd6617_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_6a8f0bf0-60a5-4a28-8624-010b0ad94c0d" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81584674-aab1-4cae-9eab-4c5d75fd6617" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_6a8f0bf0-60a5-4a28-8624-010b0ad94c0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TargusCaymanHoldCoLtdMember_bc4aaed3-e68a-457a-8abd-2859293cea4e" xlink:href="glad-20240630.xsd#glad_TargusCaymanHoldCoLtdMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_6a8f0bf0-60a5-4a28-8624-010b0ad94c0d" xlink:to="loc_glad_TargusCaymanHoldCoLtdMember_bc4aaed3-e68a-457a-8abd-2859293cea4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BRileyFinancialIncTermDebtMember_0afe12c1-e934-4a8c-a67a-9ffbff5433aa" xlink:href="glad-20240630.xsd#glad_BRileyFinancialIncTermDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_6a8f0bf0-60a5-4a28-8624-010b0ad94c0d" xlink:to="loc_glad_BRileyFinancialIncTermDebtMember_0afe12c1-e934-4a8c-a67a-9ffbff5433aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_ca4eaacb-7ca8-4359-b9d0-2adbe6e6b112" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_ca4eaacb-7ca8-4359-b9d0-2adbe6e6b112" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_b2fb2f27-1c60-4451-8d5b-6c764bc3a76b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_b2fb2f27-1c60-4451-8d5b-6c764bc3a76b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInCash_dd3f6478-7f72-4c18-954a-01a7667a01d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInCash_dd3f6478-7f72-4c18-954a-01a7667a01d8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_c66c1890-bebb-442a-ac96-f74b476f9f12" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_39789d83-aaf9-427c-92d2-ba752ebf1fee" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_c66c1890-bebb-442a-ac96-f74b476f9f12" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSCHEDULEOFINVESTMENTS"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIdentifierAxis_51160df1-831a-4912-8a1c-c3fe84fb0d01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIdentifierAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_InvestmentIdentifierAxis_51160df1-831a-4912-8a1c-c3fe84fb0d01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesByIndustryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_6a35397f-d037-4c91-9b55-78bd1c785272_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_6a35397f-d037-4c91-9b55-78bd1c785272_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AerospaceAndDefenseMember_a382c859-612b-443b-a801-122bf3d9473e" xlink:href="glad-20240630.xsd#glad_AerospaceAndDefenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_AerospaceAndDefenseMember_a382c859-612b-443b-a801-122bf3d9473e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BeverageFoodAndTobaccoMember_9c0ac114-e125-49e4-a475-128d717fd7c4" xlink:href="glad-20240630.xsd#glad_BeverageFoodAndTobaccoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_BeverageFoodAndTobaccoMember_9c0ac114-e125-49e4-a475-128d717fd7c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BuildingsAndRealEstateMember_86ddba86-e3df-46cc-ac0c-58dd5c1a508d" xlink:href="glad-20240630.xsd#glad_BuildingsAndRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_BuildingsAndRealEstateMember_86ddba86-e3df-46cc-ac0c-58dd5c1a508d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateManufacturingMember_e830326b-dbcb-45a1-ba2f-bee72194a133" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateManufacturingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_DiversifiedConglomerateManufacturingMember_e830326b-dbcb-45a1-ba2f-bee72194a133" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateServicesMember_811c2f73-67cf-4be5-96d1-93fdb60b56f0" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_DiversifiedConglomerateServicesMember_811c2f73-67cf-4be5-96d1-93fdb60b56f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HealthcareEducationAndChildcareMember_30e50118-ce2c-45aa-8ebb-01b661facee2" xlink:href="glad-20240630.xsd#glad_HealthcareEducationAndChildcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_HealthcareEducationAndChildcareMember_30e50118-ce2c-45aa-8ebb-01b661facee2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MachineryMember_4810b260-2263-4b62-a557-df9c6b7d35a8" xlink:href="glad-20240630.xsd#glad_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_MachineryMember_4810b260-2263-4b62-a557-df9c6b7d35a8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TelecommunicationsMember_bdbc2833-dfb4-4634-a379-859d2affe35d" xlink:href="glad-20240630.xsd#glad_TelecommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_TelecommunicationsMember_bdbc2833-dfb4-4634-a379-859d2affe35d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AutomobileMember_ba9b284c-e05a-455b-b6a2-1e0c29c0b5ff" xlink:href="glad-20240630.xsd#glad_AutomobileMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_AutomobileMember_ba9b284c-e05a-455b-b6a2-1e0c29c0b5ff" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CargoTransportationMember_9b1ca3b6-2b42-45fe-8a18-93bf094f3bef" xlink:href="glad-20240630.xsd#glad_CargoTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_CargoTransportationMember_9b1ca3b6-2b42-45fe-8a18-93bf094f3bef" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OilAndGasIndustryMember_dda8dfb5-818c-49cf-8bd4-2cbb9cc1720d" xlink:href="glad-20240630.xsd#glad_OilAndGasIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_OilAndGasIndustryMember_dda8dfb5-818c-49cf-8bd4-2cbb9cc1720d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_0db618dc-847a-4a8e-bc6e-af0bc530240c" xlink:href="glad-20240630.xsd#glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_0db618dc-847a-4a8e-bc6e-af0bc530240c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PrintingAndPublishingMember_09dbd922-4382-4577-9fbe-c7be661773f1" xlink:href="glad-20240630.xsd#glad_PrintingAndPublishingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_PrintingAndPublishingMember_09dbd922-4382-4577-9fbe-c7be661773f1" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_83421c46-dfeb-4551-b11f-3efd4434027f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_83421c46-dfeb-4551-b11f-3efd4434027f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_2ca3229a-7d6e-4d3a-997f-214e1df08289" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_2ca3229a-7d6e-4d3a-997f-214e1df08289" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_4734555c-7f57-4ea9-b5ed-f3139deea55c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_4734555c-7f57-4ea9-b5ed-f3139deea55c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_a17b6dcf-fef2-45e4-aea1-cf4ca6ef3b01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_a17b6dcf-fef2-45e4-aea1-cf4ca6ef3b01" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_9286172f-96e4-45c0-9444-ebb7cbaa0e70" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_9286172f-96e4-45c0-9444-ebb7cbaa0e70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_5b54f24d-3972-4f86-bd1b-5eeb6031b1f2" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_5b54f24d-3972-4f86-bd1b-5eeb6031b1f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_0c327ed8-d176-4c70-bdaf-6c61c251af05" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_PreferredEquityMember_0c327ed8-d176-4c70-bdaf-6c61c251af05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_c2659b53-bc42-4965-b44e-eeda0f19f52a" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_CommonEquityEquivalentsMember_c2659b53-bc42-4965-b44e-eeda0f19f52a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedBalancePrincipalAmount_01b1b0c7-64e9-4fc1-b7fb-c49ac29c23e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedBalancePrincipalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedBalancePrincipalAmount_01b1b0c7-64e9-4fc1-b7fb-c49ac29c23e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_8f94ebca-3048-44a4-acdd-02342d27aedd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_8f94ebca-3048-44a4-acdd-02342d27aedd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_90d8f0e5-0d7f-410c-be4b-226fc61c2c09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_90d8f0e5-0d7f-410c-be4b-226fc61c2c09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedBalanceShares_136ffc7b-f9ed-433c-92cb-1fe348e62e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedBalanceShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedBalanceShares_136ffc7b-f9ed-433c-92cb-1fe348e62e4d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedPercentage_79b0877f-ed34-4feb-ba8a-0d531cab2c18" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_glad_InvestmentOwnedPercentage_79b0877f-ed34-4feb-ba8a-0d531cab2c18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInKind_29600964-17c1-4050-98ed-919a67d19dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInKind_29600964-17c1-4050-98ed-919a67d19dc4" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS_1" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSCHEDULEOFINVESTMENTS_1"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTS_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesByIndustryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_6a35397f-d037-4c91-9b55-78bd1c785272_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_6a35397f-d037-4c91-9b55-78bd1c785272_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_6a35397f-d037-4c91-9b55-78bd1c785272" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AerospaceAndDefenseMember_a382c859-612b-443b-a801-122bf3d9473e" xlink:href="glad-20240630.xsd#glad_AerospaceAndDefenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_AerospaceAndDefenseMember_a382c859-612b-443b-a801-122bf3d9473e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BeverageFoodAndTobaccoMember_9c0ac114-e125-49e4-a475-128d717fd7c4" xlink:href="glad-20240630.xsd#glad_BeverageFoodAndTobaccoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_BeverageFoodAndTobaccoMember_9c0ac114-e125-49e4-a475-128d717fd7c4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BuildingsAndRealEstateMember_86ddba86-e3df-46cc-ac0c-58dd5c1a508d" xlink:href="glad-20240630.xsd#glad_BuildingsAndRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_BuildingsAndRealEstateMember_86ddba86-e3df-46cc-ac0c-58dd5c1a508d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateManufacturingMember_e830326b-dbcb-45a1-ba2f-bee72194a133" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateManufacturingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_DiversifiedConglomerateManufacturingMember_e830326b-dbcb-45a1-ba2f-bee72194a133" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateServicesMember_811c2f73-67cf-4be5-96d1-93fdb60b56f0" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_DiversifiedConglomerateServicesMember_811c2f73-67cf-4be5-96d1-93fdb60b56f0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HealthcareEducationAndChildcareMember_30e50118-ce2c-45aa-8ebb-01b661facee2" xlink:href="glad-20240630.xsd#glad_HealthcareEducationAndChildcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_HealthcareEducationAndChildcareMember_30e50118-ce2c-45aa-8ebb-01b661facee2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MachineryMember_4810b260-2263-4b62-a557-df9c6b7d35a8" xlink:href="glad-20240630.xsd#glad_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_MachineryMember_4810b260-2263-4b62-a557-df9c6b7d35a8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TelecommunicationsMember_bdbc2833-dfb4-4634-a379-859d2affe35d" xlink:href="glad-20240630.xsd#glad_TelecommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_TelecommunicationsMember_bdbc2833-dfb4-4634-a379-859d2affe35d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AutomobileMember_ba9b284c-e05a-455b-b6a2-1e0c29c0b5ff" xlink:href="glad-20240630.xsd#glad_AutomobileMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_AutomobileMember_ba9b284c-e05a-455b-b6a2-1e0c29c0b5ff" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CargoTransportationMember_9b1ca3b6-2b42-45fe-8a18-93bf094f3bef" xlink:href="glad-20240630.xsd#glad_CargoTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_CargoTransportationMember_9b1ca3b6-2b42-45fe-8a18-93bf094f3bef" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OilAndGasIndustryMember_dda8dfb5-818c-49cf-8bd4-2cbb9cc1720d" xlink:href="glad-20240630.xsd#glad_OilAndGasIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_OilAndGasIndustryMember_dda8dfb5-818c-49cf-8bd4-2cbb9cc1720d" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_0db618dc-847a-4a8e-bc6e-af0bc530240c" xlink:href="glad-20240630.xsd#glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_0db618dc-847a-4a8e-bc6e-af0bc530240c" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PrintingAndPublishingMember_09dbd922-4382-4577-9fbe-c7be661773f1" xlink:href="glad-20240630.xsd#glad_PrintingAndPublishingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_f21f0f2f-cefd-470a-a84e-158dd1df4d07" xlink:to="loc_glad_PrintingAndPublishingMember_09dbd922-4382-4577-9fbe-c7be661773f1" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_83421c46-dfeb-4551-b11f-3efd4434027f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_83421c46-dfeb-4551-b11f-3efd4434027f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_83421c46-dfeb-4551-b11f-3efd4434027f" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_2ca3229a-7d6e-4d3a-997f-214e1df08289" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_2ca3229a-7d6e-4d3a-997f-214e1df08289" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_4734555c-7f57-4ea9-b5ed-f3139deea55c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_4734555c-7f57-4ea9-b5ed-f3139deea55c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_a17b6dcf-fef2-45e4-aea1-cf4ca6ef3b01" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_fb081d0b-8539-44b1-82c3-bd0f2667062e" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_a17b6dcf-fef2-45e4-aea1-cf4ca6ef3b01" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_1a1804b3-acd0-48c3-b63a-713598e1de38" xlink:to="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_01612f32-c02a-4f12-bb8e-f3d0cb82e9f1" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_9286172f-96e4-45c0-9444-ebb7cbaa0e70" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_9286172f-96e4-45c0-9444-ebb7cbaa0e70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_5b54f24d-3972-4f86-bd1b-5eeb6031b1f2" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_5b54f24d-3972-4f86-bd1b-5eeb6031b1f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_0c327ed8-d176-4c70-bdaf-6c61c251af05" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_PreferredEquityMember_0c327ed8-d176-4c70-bdaf-6c61c251af05" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_c2659b53-bc42-4965-b44e-eeda0f19f52a" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_b71ba7c2-8c01-4a14-8aa2-302c9018438f" xlink:to="loc_glad_CommonEquityEquivalentsMember_c2659b53-bc42-4965-b44e-eeda0f19f52a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedBalancePrincipalAmount_01b1b0c7-64e9-4fc1-b7fb-c49ac29c23e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedBalancePrincipalAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedBalancePrincipalAmount_01b1b0c7-64e9-4fc1-b7fb-c49ac29c23e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_8f94ebca-3048-44a4-acdd-02342d27aedd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_8f94ebca-3048-44a4-acdd-02342d27aedd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_90d8f0e5-0d7f-410c-be4b-226fc61c2c09" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_90d8f0e5-0d7f-410c-be4b-226fc61c2c09" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedBalanceShares_136ffc7b-f9ed-433c-92cb-1fe348e62e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedBalanceShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentOwnedBalanceShares_136ffc7b-f9ed-433c-92cb-1fe348e62e4d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedPercentage_79b0877f-ed34-4feb-ba8a-0d531cab2c18" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_glad_InvestmentOwnedPercentage_79b0877f-ed34-4feb-ba8a-0d531cab2c18" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInKind_29600964-17c1-4050-98ed-919a67d19dc4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_57791641-f905-476c-bdcc-405065d019c0" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInKind_29600964-17c1-4050-98ed-919a67d19dc4" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_70654d59-a5f8-4d50-a669-b26158cbad29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_70654d59-a5f8-4d50-a669-b26158cbad29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_76db374f-9af1-40ea-ada4-3c9ecf5da5d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_76db374f-9af1-40ea-ada4-3c9ecf5da5d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_67a61d30-a41f-4a95-b15d-9866f523a61a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_67a61d30-a41f-4a95-b15d-9866f523a61a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_db5291c5-8438-49ca-b876-4e9ed8327c42_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_db5291c5-8438-49ca-b876-4e9ed8327c42_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0ed73e2d-6a06-4b09-a6bb-9a03dda5d0fd" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0ed73e2d-6a06-4b09-a6bb-9a03dda5d0fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_0b0a0261-d068-4014-9381-f32f690eeeeb" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_0b0a0261-d068-4014-9381-f32f690eeeeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_b2749e0a-4f10-4f86-8f28-ea414323eace" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_us-gaap_UnsecuredDebtMember_b2749e0a-4f10-4f86-8f28-ea414323eace" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_c0aa516a-3b47-46d6-9221-0cf8f1e7b4cd" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_PreferredEquityMember_c0aa516a-3b47-46d6-9221-0cf8f1e7b4cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_faa46ee4-2f5f-4465-ab8c-de0aab09d944" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_CommonEquityEquivalentsMember_faa46ee4-2f5f-4465-ab8c-de0aab09d944" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesByIndustryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_7a46a249-f8f4-4bcc-b526-c03717933b6e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_7a46a249-f8f4-4bcc-b526-c03717933b6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AerospaceAndDefenseMember_80532229-d167-410b-8811-85ce9b2839cd" xlink:href="glad-20240630.xsd#glad_AerospaceAndDefenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_AerospaceAndDefenseMember_80532229-d167-410b-8811-85ce9b2839cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BeverageFoodAndTobaccoMember_1ac90ded-f91a-4547-843f-0adb5d268c63" xlink:href="glad-20240630.xsd#glad_BeverageFoodAndTobaccoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_BeverageFoodAndTobaccoMember_1ac90ded-f91a-4547-843f-0adb5d268c63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BuildingsAndRealEstateMember_9a44b70e-ff43-419f-89a9-85efa195586b" xlink:href="glad-20240630.xsd#glad_BuildingsAndRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_BuildingsAndRealEstateMember_9a44b70e-ff43-419f-89a9-85efa195586b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateManufacturingMember_33e59fc4-8bbf-4750-8ad9-9994c811098b" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateManufacturingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_DiversifiedConglomerateManufacturingMember_33e59fc4-8bbf-4750-8ad9-9994c811098b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateServicesMember_74ba13de-2d6f-4140-a1d7-127effef5be1" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_DiversifiedConglomerateServicesMember_74ba13de-2d6f-4140-a1d7-127effef5be1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HealthcareEducationAndChildcareMember_5d720687-ded5-4886-a203-c65b1ec2dd18" xlink:href="glad-20240630.xsd#glad_HealthcareEducationAndChildcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_HealthcareEducationAndChildcareMember_5d720687-ded5-4886-a203-c65b1ec2dd18" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MachineryMember_a2786ab4-3e59-46c3-beba-2280a05b41e6" xlink:href="glad-20240630.xsd#glad_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_MachineryMember_a2786ab4-3e59-46c3-beba-2280a05b41e6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OilAndGasIndustryMember_79a6b463-70f2-4faa-804f-c55ca816cd00" xlink:href="glad-20240630.xsd#glad_OilAndGasIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_OilAndGasIndustryMember_79a6b463-70f2-4faa-804f-c55ca816cd00" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TelecommunicationsMember_f8cfec92-96c5-44eb-a3c0-3514c440512a" xlink:href="glad-20240630.xsd#glad_TelecommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_TelecommunicationsMember_f8cfec92-96c5-44eb-a3c0-3514c440512a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AutomobileMember_2b4f832c-9a01-4d2a-a002-43272f99ca81" xlink:href="glad-20240630.xsd#glad_AutomobileMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_AutomobileMember_2b4f832c-9a01-4d2a-a002-43272f99ca81" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CargoTransportationMember_1486695f-cbd4-4f3a-a04f-fb18c0f51bb9" xlink:href="glad-20240630.xsd#glad_CargoTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_CargoTransportationMember_1486695f-cbd4-4f3a-a04f-fb18c0f51bb9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_cae402f7-dda7-435f-904f-014d3341348f" xlink:href="glad-20240630.xsd#glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_cae402f7-dda7-435f-904f-014d3341348f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PrintingAndPublishingMember_d0064c43-df25-496d-8090-ec15c870dc96" xlink:href="glad-20240630.xsd#glad_PrintingAndPublishingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_PrintingAndPublishingMember_d0064c43-df25-496d-8090-ec15c870dc96" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIdentifierAxis_b0ee2b77-7621-423f-9858-486d24f8f537" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIdentifierAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_InvestmentIdentifierAxis_b0ee2b77-7621-423f-9858-486d24f8f537" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_57c85c98-2d89-4a9a-a452-0e0128ac2e2b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:to="loc_us-gaap_CollateralDomain_57c85c98-2d89-4a9a-a452-0e0128ac2e2b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:to="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_58d0ce10-bf57-441d-926a-978bbaf9d5f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:to="loc_us-gaap_CollateralPledgedMember_58d0ce10-bf57-441d-926a-978bbaf9d5f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2c0cdfb7-18df-4d3c-a4fb-167377e97682_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:to="loc_us-gaap_VariableRateDomain_2c0cdfb7-18df-4d3c-a4fb-167377e97682_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:to="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_13ac42ce-4be3-4cd3-9e44-bb1f8983cf11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_13ac42ce-4be3-4cd3-9e44-bb1f8983cf11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SecuredOvernightFinancingRateSOFR_90DayMember_c3015a0e-d5ba-4333-a097-c9133ba5ee91" xlink:href="glad-20240630.xsd#glad_SecuredOvernightFinancingRateSOFR_90DayMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:to="loc_glad_SecuredOvernightFinancingRateSOFR_90DayMember_c3015a0e-d5ba-4333-a097-c9133ba5ee91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_1d00bd44-deb7-4cec-a821-668d07beec52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedPercentOfNetAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_1d00bd44-deb7-4cec-a821-668d07beec52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentBasisSpreadVariableRate_21967519-b883-4593-ad57-3fd82f041cc3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentBasisSpreadVariableRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentBasisSpreadVariableRate_21967519-b883-4593-ad57-3fd82f041cc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInCash_b2cbe8d7-30ad-49b2-b8d7-21fb46f85a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInCash_b2cbe8d7-30ad-49b2-b8d7-21fb46f85a7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInKind_0c741df9-c15a-485b-97d4-18a0cdc82ecb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInKind_0c741df9-c15a-485b-97d4-18a0cdc82ecb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_4024b17c-5221-4609-8088-ce60b1388f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_4024b17c-5221-4609-8088-ce60b1388f37" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_09a0981c-a02f-4fa7-a54c-5322aeba8b44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_09a0981c-a02f-4fa7-a54c-5322aeba8b44" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets_d05d4807-3ee9-4e8b-a0c2-664222bc8bff" xlink:href="glad-20240630.xsd#glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets_d05d4807-3ee9-4e8b-a0c2-664222bc8bff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets_6948ec3e-bd1a-449f-b2ca-ca526a995ced" xlink:href="glad-20240630.xsd#glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets_6948ec3e-bd1a-449f-b2ca-ca526a995ced" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentLeverageMaturityTerm_edf159b8-cf34-4e78-ac18-1d65a90ff8d4" xlink:href="glad-20240630.xsd#glad_DebtInstrumentLeverageMaturityTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_DebtInstrumentLeverageMaturityTerm_edf159b8-cf34-4e78-ac18-1d65a90ff8d4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation_9f12e286-1ee5-4a8a-8a95-1c1bb14d5a2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation_9f12e286-1ee5-4a8a-8a95-1c1bb14d5a2d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation_cf4e8cf6-b4bc-487e-b9dd-d2cf1c0d1796" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation_cf4e8cf6-b4bc-487e-b9dd-d2cf1c0d1796" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet_cc92ec52-3030-40e4-bc42-9a13c35056f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet_cc92ec52-3030-40e4-bc42-9a13c35056f2" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes_034d7869-7705-4d2b-9d56-4cd3da529ff2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes_034d7869-7705-4d2b-9d56-4cd3da529ff2" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals_1" xlink:type="simple" xlink:href="glad-20240630.xsd#CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals_1"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CONSOLIDATEDSCHEDULEOFINVESTMENTSParentheticals_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_24a225cc-0108-4e9e-bf2e-6e130fd9dcbb" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_70654d59-a5f8-4d50-a669-b26158cbad29" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_70654d59-a5f8-4d50-a669-b26158cbad29" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_76db374f-9af1-40ea-ada4-3c9ecf5da5d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_76db374f-9af1-40ea-ada4-3c9ecf5da5d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_67a61d30-a41f-4a95-b15d-9866f523a61a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_4210a186-4fb6-47b5-b164-9eb9c10e4982" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_67a61d30-a41f-4a95-b15d-9866f523a61a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_db5291c5-8438-49ca-b876-4e9ed8327c42_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_db5291c5-8438-49ca-b876-4e9ed8327c42_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_db5291c5-8438-49ca-b876-4e9ed8327c42" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0ed73e2d-6a06-4b09-a6bb-9a03dda5d0fd" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0ed73e2d-6a06-4b09-a6bb-9a03dda5d0fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_0b0a0261-d068-4014-9381-f32f690eeeeb" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_0b0a0261-d068-4014-9381-f32f690eeeeb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_b2749e0a-4f10-4f86-8f28-ea414323eace" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_us-gaap_UnsecuredDebtMember_b2749e0a-4f10-4f86-8f28-ea414323eace" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_c0aa516a-3b47-46d6-9221-0cf8f1e7b4cd" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_PreferredEquityMember_c0aa516a-3b47-46d6-9221-0cf8f1e7b4cd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_faa46ee4-2f5f-4465-ab8c-de0aab09d944" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_7cddd90e-077c-49d8-9503-87666fea95fc" xlink:to="loc_glad_CommonEquityEquivalentsMember_faa46ee4-2f5f-4465-ab8c-de0aab09d944" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesByIndustryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_7a46a249-f8f4-4bcc-b526-c03717933b6e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_7a46a249-f8f4-4bcc-b526-c03717933b6e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a46a249-f8f4-4bcc-b526-c03717933b6e" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AerospaceAndDefenseMember_80532229-d167-410b-8811-85ce9b2839cd" xlink:href="glad-20240630.xsd#glad_AerospaceAndDefenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_AerospaceAndDefenseMember_80532229-d167-410b-8811-85ce9b2839cd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BeverageFoodAndTobaccoMember_1ac90ded-f91a-4547-843f-0adb5d268c63" xlink:href="glad-20240630.xsd#glad_BeverageFoodAndTobaccoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_BeverageFoodAndTobaccoMember_1ac90ded-f91a-4547-843f-0adb5d268c63" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BuildingsAndRealEstateMember_9a44b70e-ff43-419f-89a9-85efa195586b" xlink:href="glad-20240630.xsd#glad_BuildingsAndRealEstateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_BuildingsAndRealEstateMember_9a44b70e-ff43-419f-89a9-85efa195586b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateManufacturingMember_33e59fc4-8bbf-4750-8ad9-9994c811098b" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateManufacturingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_DiversifiedConglomerateManufacturingMember_33e59fc4-8bbf-4750-8ad9-9994c811098b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateServicesMember_74ba13de-2d6f-4140-a1d7-127effef5be1" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_DiversifiedConglomerateServicesMember_74ba13de-2d6f-4140-a1d7-127effef5be1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HealthcareEducationAndChildcareMember_5d720687-ded5-4886-a203-c65b1ec2dd18" xlink:href="glad-20240630.xsd#glad_HealthcareEducationAndChildcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_HealthcareEducationAndChildcareMember_5d720687-ded5-4886-a203-c65b1ec2dd18" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MachineryMember_a2786ab4-3e59-46c3-beba-2280a05b41e6" xlink:href="glad-20240630.xsd#glad_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_MachineryMember_a2786ab4-3e59-46c3-beba-2280a05b41e6" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OilAndGasIndustryMember_79a6b463-70f2-4faa-804f-c55ca816cd00" xlink:href="glad-20240630.xsd#glad_OilAndGasIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_OilAndGasIndustryMember_79a6b463-70f2-4faa-804f-c55ca816cd00" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TelecommunicationsMember_f8cfec92-96c5-44eb-a3c0-3514c440512a" xlink:href="glad-20240630.xsd#glad_TelecommunicationsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_TelecommunicationsMember_f8cfec92-96c5-44eb-a3c0-3514c440512a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AutomobileMember_2b4f832c-9a01-4d2a-a002-43272f99ca81" xlink:href="glad-20240630.xsd#glad_AutomobileMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_AutomobileMember_2b4f832c-9a01-4d2a-a002-43272f99ca81" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CargoTransportationMember_1486695f-cbd4-4f3a-a04f-fb18c0f51bb9" xlink:href="glad-20240630.xsd#glad_CargoTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_CargoTransportationMember_1486695f-cbd4-4f3a-a04f-fb18c0f51bb9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_cae402f7-dda7-435f-904f-014d3341348f" xlink:href="glad-20240630.xsd#glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_PersonalAndNonDurableConsumerProductsManufacturingOnlyMember_cae402f7-dda7-435f-904f-014d3341348f" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PrintingAndPublishingMember_d0064c43-df25-496d-8090-ec15c870dc96" xlink:href="glad-20240630.xsd#glad_PrintingAndPublishingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_ff8cdfc5-5f6c-40e2-a705-47a0abb494eb" xlink:to="loc_glad_PrintingAndPublishingMember_d0064c43-df25-496d-8090-ec15c870dc96" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_57c85c98-2d89-4a9a-a452-0e0128ac2e2b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:to="loc_us-gaap_CollateralDomain_57c85c98-2d89-4a9a-a452-0e0128ac2e2b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_57c85c98-2d89-4a9a-a452-0e0128ac2e2b" xlink:to="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_58d0ce10-bf57-441d-926a-978bbaf9d5f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_2ba184dd-4bd4-48eb-b712-9d10006f57e0" xlink:to="loc_us-gaap_CollateralPledgedMember_58d0ce10-bf57-441d-926a-978bbaf9d5f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_672a5d75-1a42-4ed9-8068-58c43e5d6069" xlink:to="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2c0cdfb7-18df-4d3c-a4fb-167377e97682_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:to="loc_us-gaap_VariableRateDomain_2c0cdfb7-18df-4d3c-a4fb-167377e97682_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_2c0cdfb7-18df-4d3c-a4fb-167377e97682" xlink:to="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_13ac42ce-4be3-4cd3-9e44-bb1f8983cf11" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_13ac42ce-4be3-4cd3-9e44-bb1f8983cf11" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SecuredOvernightFinancingRateSOFR_90DayMember_c3015a0e-d5ba-4333-a097-c9133ba5ee91" xlink:href="glad-20240630.xsd#glad_SecuredOvernightFinancingRateSOFR_90DayMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_ff24c180-bacd-482b-a87a-296ca0a160b5" xlink:to="loc_glad_SecuredOvernightFinancingRateSOFR_90DayMember_c3015a0e-d5ba-4333-a097-c9133ba5ee91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_1d00bd44-deb7-4cec-a821-668d07beec52" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedPercentOfNetAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentOwnedPercentOfNetAssets_1d00bd44-deb7-4cec-a821-668d07beec52" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentBasisSpreadVariableRate_21967519-b883-4593-ad57-3fd82f041cc3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentBasisSpreadVariableRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentBasisSpreadVariableRate_21967519-b883-4593-ad57-3fd82f041cc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInCash_b2cbe8d7-30ad-49b2-b8d7-21fb46f85a7a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInCash_b2cbe8d7-30ad-49b2-b8d7-21fb46f85a7a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentInterestRatePaidInKind_0c741df9-c15a-485b-97d4-18a0cdc82ecb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentInterestRatePaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentInterestRatePaidInKind_0c741df9-c15a-485b-97d4-18a0cdc82ecb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_4024b17c-5221-4609-8088-ce60b1388f37" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_4024b17c-5221-4609-8088-ce60b1388f37" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_09a0981c-a02f-4fa7-a54c-5322aeba8b44" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_09a0981c-a02f-4fa7-a54c-5322aeba8b44" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets_d05d4807-3ee9-4e8b-a0c2-664222bc8bff" xlink:href="glad-20240630.xsd#glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_PercentageThresholdOfQualifiedAssetsRepresentingTotalAssetsInOrderToAcquireNonQualifiedAssets_d05d4807-3ee9-4e8b-a0c2-664222bc8bff" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets_6948ec3e-bd1a-449f-b2ca-ca526a995ced" xlink:href="glad-20240630.xsd#glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_PercentageOfAcquiredNonQualifyingAssetsOfTotalAssets_6948ec3e-bd1a-449f-b2ca-ca526a995ced" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentLeverageMaturityTerm_edf159b8-cf34-4e78-ac18-1d65a90ff8d4" xlink:href="glad-20240630.xsd#glad_DebtInstrumentLeverageMaturityTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_glad_DebtInstrumentLeverageMaturityTerm_edf159b8-cf34-4e78-ac18-1d65a90ff8d4" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation_9f12e286-1ee5-4a8a-8a95-1c1bb14d5a2d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedDepreciation_9f12e286-1ee5-4a8a-8a95-1c1bb14d5a2d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation_cf4e8cf6-b4bc-487e-b9dd-d2cf1c0d1796" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsGrossUnrealizedAppreciation_cf4e8cf6-b4bc-487e-b9dd-d2cf1c0d1796" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet_cc92ec52-3030-40e4-bc42-9a13c35056f2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsUnrealizedAppreciationDepreciationNet_cc92ec52-3030-40e4-bc42-9a13c35056f2" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes_034d7869-7705-4d2b-9d56-4cd3da529ff2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfInvestmentsLineItems_39a7f536-f53a-40ca-a3b4-31baaab628b4" xlink:to="loc_us-gaap_TaxBasisOfInvestmentsCostForIncomeTaxPurposes_034d7869-7705-4d2b-9d56-4cd3da529ff2" xlink:type="arc" order="12"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/ORGANIZATIONDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#ORGANIZATIONDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/ORGANIZATIONDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_123d17bb-e08a-4b03-bcd1-119b9a0768f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_28865822-5f56-4d95-8b85-0b001f0da5de" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_123d17bb-e08a-4b03-bcd1-119b9a0768f6" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_28865822-5f56-4d95-8b85-0b001f0da5de" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_18508eea-4150-4afe-a2ee-cd5681f6e975" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_28865822-5f56-4d95-8b85-0b001f0da5de" xlink:to="loc_srt_RangeAxis_18508eea-4150-4afe-a2ee-cd5681f6e975" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_18508eea-4150-4afe-a2ee-cd5681f6e975_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_18508eea-4150-4afe-a2ee-cd5681f6e975" xlink:to="loc_srt_RangeMember_18508eea-4150-4afe-a2ee-cd5681f6e975_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_a09f0c36-a9c7-40e5-b186-e8f0b8eccbe8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_18508eea-4150-4afe-a2ee-cd5681f6e975" xlink:to="loc_srt_RangeMember_a09f0c36-a9c7-40e5-b186-e8f0b8eccbe8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_51ce727d-90ee-4cf8-8e1f-fcf6322f0e6b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a09f0c36-a9c7-40e5-b186-e8f0b8eccbe8" xlink:to="loc_srt_MinimumMember_51ce727d-90ee-4cf8-8e1f-fcf6322f0e6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_47938310-7e31-40bd-b5cb-5ac2bf8c90ad" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_a09f0c36-a9c7-40e5-b186-e8f0b8eccbe8" xlink:to="loc_srt_MaximumMember_47938310-7e31-40bd-b5cb-5ac2bf8c90ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyEarningsBeforeInterestTaxesDepreciationAndAmortization_ad89dbe8-8e82-4de5-b771-7708dafa0bab" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyEarningsBeforeInterestTaxesDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_123d17bb-e08a-4b03-bcd1-119b9a0768f6" xlink:to="loc_glad_InvestmentCompanyEarningsBeforeInterestTaxesDepreciationAndAmortization_ad89dbe8-8e82-4de5-b771-7708dafa0bab" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/SUMMARYOFSIGNIFICANTACCOUNTINGPOLICIESDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfInvestmentsTable_3c437759-b1a4-4d11-b408-64d8db6e6eab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_ScheduleOfInvestmentsTable_3c437759-b1a4-4d11-b408-64d8db6e6eab" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_dd0f76a7-15b9-44e1-8e9e-1312110746a6" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_3c437759-b1a4-4d11-b408-64d8db6e6eab" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_dd0f76a7-15b9-44e1-8e9e-1312110746a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_dd0f76a7-15b9-44e1-8e9e-1312110746a6_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_dd0f76a7-15b9-44e1-8e9e-1312110746a6" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_dd0f76a7-15b9-44e1-8e9e-1312110746a6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_cf776b1d-0f0d-4424-b0b6-3d0b593df47b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_dd0f76a7-15b9-44e1-8e9e-1312110746a6" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_cf776b1d-0f0d-4424-b0b6-3d0b593df47b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BTGroupAcquisitionInc.EdgeAdhesivesHoldingsInc.AndWBXcelHoldingsLLCMember_d6263548-b726-4147-b320-08c0e6125410" xlink:href="glad-20240630.xsd#glad_BTGroupAcquisitionInc.EdgeAdhesivesHoldingsInc.AndWBXcelHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_cf776b1d-0f0d-4424-b0b6-3d0b593df47b" xlink:to="loc_glad_BTGroupAcquisitionInc.EdgeAdhesivesHoldingsInc.AndWBXcelHoldingsLLCMember_d6263548-b726-4147-b320-08c0e6125410" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_EdgeAdhesivesHoldingsIncMember_52b6ef90-11c5-408f-a883-d72d682aeaa8" xlink:href="glad-20240630.xsd#glad_EdgeAdhesivesHoldingsIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_cf776b1d-0f0d-4424-b0b6-3d0b593df47b" xlink:to="loc_glad_EdgeAdhesivesHoldingsIncMember_52b6ef90-11c5-408f-a883-d72d682aeaa8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_a53b879f-309d-41d6-b91d-b5fb12591854" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfInvestmentsTable_3c437759-b1a4-4d11-b408-64d8db6e6eab" xlink:to="loc_us-gaap_InvestmentTypeAxis_a53b879f-309d-41d6-b91d-b5fb12591854" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_a53b879f-309d-41d6-b91d-b5fb12591854_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_a53b879f-309d-41d6-b91d-b5fb12591854" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_a53b879f-309d-41d6-b91d-b5fb12591854_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_93f0852d-1004-4129-b9f1-0cee2c8b3594" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_a53b879f-309d-41d6-b91d-b5fb12591854" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_93f0852d-1004-4129-b9f1-0cee2c8b3594" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OriginallyIssuedAtDiscountsMember_55aa30d1-2bdb-45c9-b7f1-89eb63acd02f" xlink:href="glad-20240630.xsd#glad_OriginallyIssuedAtDiscountsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_93f0852d-1004-4129-b9f1-0cee2c8b3594" xlink:to="loc_glad_OriginallyIssuedAtDiscountsMember_55aa30d1-2bdb-45c9-b7f1-89eb63acd02f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentInKindPIKNoteMember_3d67703e-f516-47d3-b73a-8b6fcf1cfda6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentInKindPIKNoteMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_93f0852d-1004-4129-b9f1-0cee2c8b3594" xlink:to="loc_us-gaap_PaymentInKindPIKNoteMember_3d67703e-f516-47d3-b73a-8b6fcf1cfda6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_d34f53c6-af9c-4072-8b54-4e35fcb7512c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_d34f53c6-af9c-4072-8b54-4e35fcb7512c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_2282561d-1f01-4cff-85f6-ad2701a61aa0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_2282561d-1f01-4cff-85f6-ad2701a61aa0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedPercentOfCostBasis_3bf0e734-1456-47e4-941e-71ba03e97b13" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedPercentOfCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_glad_InvestmentOwnedPercentOfCostBasis_3bf0e734-1456-47e4-941e-71ba03e97b13" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_28cbe49b-58ec-4ddb-8e00-2e4576a84da6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_28cbe49b-58ec-4ddb-8e00-2e4576a84da6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedPercentOfFairValue_d8dbbf8c-ec15-4487-bc6f-3e6129a83e68" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedPercentOfFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_glad_InvestmentOwnedPercentOfFairValue_d8dbbf8c-ec15-4487-bc6f-3e6129a83e68" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfLoanReceivable_81ff5d24-078d-4e0d-abbf-d83f0cb32590" xlink:href="glad-20240630.xsd#glad_NumberOfLoanReceivable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_glad_NumberOfLoanReceivable_81ff5d24-078d-4e0d-abbf-d83f0cb32590" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInCash_eae86b78-3fe8-4c07-b4b8-07cece1bebca" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInCash"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInCash_eae86b78-3fe8-4c07-b4b8-07cece1bebca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfInvestment_8ef350bb-da90-4ad7-a292-e79438856565" xlink:href="glad-20240630.xsd#glad_NumberOfInvestment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_glad_NumberOfInvestment_8ef350bb-da90-4ad7-a292-e79438856565" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeOperatingPaidInKind_04013d34-4148-43ff-bfe6-2fcf015c9ab2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestIncomeOperatingPaidInKind"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_InterestIncomeOperatingPaidInKind_04013d34-4148-43ff-bfe6-2fcf015c9ab2" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromInterestReceived_314375c9-5cb2-47b7-91e8-7c3c568faf7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromInterestReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_25a53b07-c709-4063-8ee7-5d6bb843295f" xlink:to="loc_us-gaap_ProceedsFromInterestReceived_314375c9-5cb2-47b7-91e8-7c3c568faf7f" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/INVESTMENTSFairValueAssetsMeasuredonRecurringBasisDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#INVESTMENTSFairValueAssetsMeasuredonRecurringBasisDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/INVESTMENTSFairValueAssetsMeasuredonRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_824132ee-b1a8-4227-b042-b6820e4ae0ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_824132ee-b1a8-4227-b042-b6820e4ae0ed" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_4b7a0943-13a9-450f-8222-8cf3f5dedeff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:to="loc_us-gaap_FinancialInstrumentAxis_4b7a0943-13a9-450f-8222-8cf3f5dedeff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4b7a0943-13a9-450f-8222-8cf3f5dedeff_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4b7a0943-13a9-450f-8222-8cf3f5dedeff" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_4b7a0943-13a9-450f-8222-8cf3f5dedeff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_4b7a0943-13a9-450f-8222-8cf3f5dedeff" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0dfc51fa-d479-4704-b6ae-6c54d7b51213" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_0dfc51fa-d479-4704-b6ae-6c54d7b51213" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_d487a0ca-2b4f-4602-9029-6310abb69efd" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_d487a0ca-2b4f-4602-9029-6310abb69efd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_85f324c5-0dbe-4990-b4d2-aff6f911ae41" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:to="loc_us-gaap_UnsecuredDebtMember_85f324c5-0dbe-4990-b4d2-aff6f911ae41" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_b7915fcf-73aa-4bd4-89dd-4da8c136a928" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:to="loc_glad_PreferredEquityMember_b7915fcf-73aa-4bd4-89dd-4da8c136a928" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_9e82a13b-e75a-49fa-a102-5a2bf7fd2c76" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_bf439858-507f-4c39-9093-4c486367dd58" xlink:to="loc_glad_CommonEquityEquivalentsMember_9e82a13b-e75a-49fa-a102-5a2bf7fd2c76" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_239d30b2-59ef-4455-a3cc-3f621f2e3cec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_239d30b2-59ef-4455-a3cc-3f621f2e3cec" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_239d30b2-59ef-4455-a3cc-3f621f2e3cec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_239d30b2-59ef-4455-a3cc-3f621f2e3cec" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_239d30b2-59ef-4455-a3cc-3f621f2e3cec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d0f7b808-9374-414f-8c03-88f0c5a396d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_239d30b2-59ef-4455-a3cc-3f621f2e3cec" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d0f7b808-9374-414f-8c03-88f0c5a396d7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_689c2fba-5f1f-4033-8184-b0ad938061e8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d0f7b808-9374-414f-8c03-88f0c5a396d7" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_689c2fba-5f1f-4033-8184-b0ad938061e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_40b5d6f5-5026-49f3-a37f-3166e8029f60" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d0f7b808-9374-414f-8c03-88f0c5a396d7" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_40b5d6f5-5026-49f3-a37f-3166e8029f60" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_72907a00-50bc-4968-8a7c-a3f3678bf867" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_d0f7b808-9374-414f-8c03-88f0c5a396d7" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_72907a00-50bc-4968-8a7c-a3f3678bf867" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationAxis_19ed1089-c979-43f6-9d96-e2151e5fa74d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationAxis_19ed1089-c979-43f6-9d96-e2151e5fa74d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_19ed1089-c979-43f6-9d96-e2151e5fa74d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_19ed1089-c979-43f6-9d96-e2151e5fa74d" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_19ed1089-c979-43f6-9d96-e2151e5fa74d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIssuerAffiliationDomain_ad25e4be-ebeb-4746-9307-7a5e10e847d3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIssuerAffiliationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationAxis_19ed1089-c979-43f6-9d96-e2151e5fa74d" xlink:to="loc_us-gaap_InvestmentIssuerAffiliationDomain_ad25e4be-ebeb-4746-9307-7a5e10e847d3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_ded40596-6662-45d0-895f-bb93b3c0df9f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentUnaffiliatedIssuerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_ad25e4be-ebeb-4746-9307-7a5e10e847d3" xlink:to="loc_us-gaap_InvestmentUnaffiliatedIssuerMember_ded40596-6662-45d0-895f-bb93b3c0df9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_41b512c0-dc44-4075-a487-2bc7792f5d21" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_ad25e4be-ebeb-4746-9307-7a5e10e847d3" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerNoncontrolledMember_41b512c0-dc44-4075-a487-2bc7792f5d21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_0bdfdfb8-a24e-42eb-b884-93a972a2f729" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentAffiliatedIssuerControlledMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentIssuerAffiliationDomain_ad25e4be-ebeb-4746-9307-7a5e10e847d3" xlink:to="loc_us-gaap_InvestmentAffiliatedIssuerControlledMember_0bdfdfb8-a24e-42eb-b884-93a972a2f729" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e2416023-7876-43c2-a294-934b1ab6c18e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e2416023-7876-43c2-a294-934b1ab6c18e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_e2416023-7876-43c2-a294-934b1ab6c18e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e2416023-7876-43c2-a294-934b1ab6c18e" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_e2416023-7876-43c2-a294-934b1ab6c18e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_4810c048-5f05-4256-ac44-b5bda2870259" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_e2416023-7876-43c2-a294-934b1ab6c18e" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_4810c048-5f05-4256-ac44-b5bda2870259" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_f624b16c-f62b-4726-9264-82f07ad237b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_4810c048-5f05-4256-ac44-b5bda2870259" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_f624b16c-f62b-4726-9264-82f07ad237b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9d3440fa-464e-4f23-8376-a3ffa57cf84f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_9d8d6556-b9eb-49b5-a121-498c8f7a5c45" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9d3440fa-464e-4f23-8376-a3ffa57cf84f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_9d3440fa-464e-4f23-8376-a3ffa57cf84f_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9d3440fa-464e-4f23-8376-a3ffa57cf84f" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_9d3440fa-464e-4f23-8376-a3ffa57cf84f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_2f6b8cf6-9c79-43ed-925d-5ae811036b16" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_9d3440fa-464e-4f23-8376-a3ffa57cf84f" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_2f6b8cf6-9c79-43ed-925d-5ae811036b16" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_LeedsAcquisitionHoldingsLLCMember_43e8419c-37db-4030-9c9d-35e20563de6a" xlink:href="glad-20240630.xsd#glad_LeedsAcquisitionHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_2f6b8cf6-9c79-43ed-925d-5ae811036b16" xlink:to="loc_glad_LeedsAcquisitionHoldingsLLCMember_43e8419c-37db-4030-9c9d-35e20563de6a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FunkoAcquisitionHoldingsLLCMember_402d0626-ba64-4229-9026-b16a111542b0" xlink:href="glad-20240630.xsd#glad_FunkoAcquisitionHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_2f6b8cf6-9c79-43ed-925d-5ae811036b16" xlink:to="loc_glad_FunkoAcquisitionHoldingsLLCMember_402d0626-ba64-4229-9026-b16a111542b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsFairValueDisclosure_c974e3e2-a919-40bf-af0f-60fe07b5fbb5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_824132ee-b1a8-4227-b042-b6820e4ae0ed" xlink:to="loc_us-gaap_InvestmentsFairValueDisclosure_c974e3e2-a919-40bf-af0f-60fe07b5fbb5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/INVESTMENTSFairValueMeasurementInputsandValuationTechniquesDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#INVESTMENTSFairValueMeasurementInputsandValuationTechniquesDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/INVESTMENTSFairValueMeasurementInputsandValuationTechniquesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_d35e5325-2c3d-474a-9aa1-b4abeeffa192" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_d35e5325-2c3d-474a-9aa1-b4abeeffa192" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_df3d4a43-4c5d-4838-9d9c-c7bed2f8ecbc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_681ba7ac-08cd-4b8f-ac90-a95a8aaf690b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_df3d4a43-4c5d-4838-9d9c-c7bed2f8ecbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_fe9e0a28-27d5-4940-9591-fb1443298dc5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_df3d4a43-4c5d-4838-9d9c-c7bed2f8ecbc" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_fe9e0a28-27d5-4940-9591-fb1443298dc5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueAxis_53c99be6-ac49-478a-ba90-e325e6c5dbe6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_us-gaap_ValuationTechniqueAxis_53c99be6-ac49-478a-ba90-e325e6c5dbe6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_53c99be6-ac49-478a-ba90-e325e6c5dbe6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ValuationTechniqueAxis_53c99be6-ac49-478a-ba90-e325e6c5dbe6" xlink:to="loc_us-gaap_ValuationTechniqueDomain_53c99be6-ac49-478a-ba90-e325e6c5dbe6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ValuationTechniqueDomain_0568d49c-b166-4f74-8713-1b11dc2d0ec3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ValuationTechniqueDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ValuationTechniqueAxis_53c99be6-ac49-478a-ba90-e325e6c5dbe6" xlink:to="loc_us-gaap_ValuationTechniqueDomain_0568d49c-b166-4f74-8713-1b11dc2d0ec3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_YieldAnalysisMember_e1fe7764-0e10-40be-b737-82076f92363e" xlink:href="glad-20240630.xsd#glad_YieldAnalysisMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_0568d49c-b166-4f74-8713-1b11dc2d0ec3" xlink:to="loc_glad_YieldAnalysisMember_e1fe7764-0e10-40be-b737-82076f92363e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TotalEnterpriseValueMember_0b7f5c42-9405-449a-bd92-337bfd3f145d" xlink:href="glad-20240630.xsd#glad_TotalEnterpriseValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_0568d49c-b166-4f74-8713-1b11dc2d0ec3" xlink:to="loc_glad_TotalEnterpriseValueMember_0b7f5c42-9405-449a-bd92-337bfd3f145d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MarketQuoteMember_5d07b11b-dde2-488e-950d-8ea3dd09c95b" xlink:href="glad-20240630.xsd#glad_MarketQuoteMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ValuationTechniqueDomain_0568d49c-b166-4f74-8713-1b11dc2d0ec3" xlink:to="loc_glad_MarketQuoteMember_5d07b11b-dde2-488e-950d-8ea3dd09c95b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeAxis_50a79db3-5453-4632-9343-70c4e6f341d6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_us-gaap_MeasurementInputTypeAxis_50a79db3-5453-4632-9343-70c4e6f341d6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_50a79db3-5453-4632-9343-70c4e6f341d6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_50a79db3-5453-4632-9343-70c4e6f341d6" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_50a79db3-5453-4632-9343-70c4e6f341d6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_MeasurementInputTypeAxis_50a79db3-5453-4632-9343-70c4e6f341d6" xlink:to="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputDiscountRateMember_9ddbdd68-0baf-43f1-a51b-b687b658804e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputDiscountRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_us-gaap_MeasurementInputDiscountRateMember_9ddbdd68-0baf-43f1-a51b-b687b658804e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputEbitdaMultipleMember_e1915d43-7b6f-4275-8085-619210829ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputEbitdaMultipleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_us-gaap_MeasurementInputEbitdaMultipleMember_e1915d43-7b6f-4275-8085-619210829ef2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MeasurementInputEBITDAMember_566b5cc5-5799-4aaa-b4e5-bfa578ef01f9" xlink:href="glad-20240630.xsd#glad_MeasurementInputEBITDAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_glad_MeasurementInputEBITDAMember_566b5cc5-5799-4aaa-b4e5-bfa578ef01f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MeasurementInputRevenueMultipleMember_2eab0bf6-9b52-4d26-bbf4-6ff9e2e62190" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MeasurementInputRevenueMultipleMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_us-gaap_MeasurementInputRevenueMultipleMember_2eab0bf6-9b52-4d26-bbf4-6ff9e2e62190" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MeasurementInputRevenueMember_d14bbec2-b8be-4de6-9192-172c84ce85bf" xlink:href="glad-20240630.xsd#glad_MeasurementInputRevenueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_glad_MeasurementInputRevenueMember_d14bbec2-b8be-4de6-9192-172c84ce85bf" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_IBPMember_0f7f35cf-729f-4bc0-8598-b10b969aae35" xlink:href="glad-20240630.xsd#glad_IBPMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_MeasurementInputTypeDomain_591efb8b-8bdf-4ef6-9fda-e54d6026f580" xlink:to="loc_glad_IBPMember_0f7f35cf-729f-4bc0-8598-b10b969aae35" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_1d970d57-bf3a-43bc-875c-8d72b6ccab83" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_us-gaap_FinancialInstrumentAxis_1d970d57-bf3a-43bc-875c-8d72b6ccab83" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1d970d57-bf3a-43bc-875c-8d72b6ccab83_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_1d970d57-bf3a-43bc-875c-8d72b6ccab83" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_1d970d57-bf3a-43bc-875c-8d72b6ccab83_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_1d970d57-bf3a-43bc-875c-8d72b6ccab83" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_2293669e-a025-4359-b160-0e378aab3b27" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_2293669e-a025-4359-b160-0e378aab3b27" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_fd94a705-b239-427e-a58b-2740ca188782" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_fd94a705-b239-427e-a58b-2740ca188782" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_941d0568-6ab4-4e6d-8081-12ee2f2aefc1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:to="loc_us-gaap_UnsecuredDebtMember_941d0568-6ab4-4e6d-8081-12ee2f2aefc1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredAndCommonEquityEquivalentsMember_55bfb723-cc29-4550-b289-483ffb97d674" xlink:href="glad-20240630.xsd#glad_PreferredAndCommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_0188ce75-3a41-4c1b-add5-d838ee67ea54" xlink:to="loc_glad_PreferredAndCommonEquityEquivalentsMember_55bfb723-cc29-4550-b289-483ffb97d674" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_cffe6a6b-8295-4607-a50a-bab66934fb26" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_srt_RangeAxis_cffe6a6b-8295-4607-a50a-bab66934fb26" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_cffe6a6b-8295-4607-a50a-bab66934fb26_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_cffe6a6b-8295-4607-a50a-bab66934fb26" xlink:to="loc_srt_RangeMember_cffe6a6b-8295-4607-a50a-bab66934fb26_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_563acd82-ad49-420c-bde5-9fe81ba03764" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_cffe6a6b-8295-4607-a50a-bab66934fb26" xlink:to="loc_srt_RangeMember_563acd82-ad49-420c-bde5-9fe81ba03764" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_516c967c-46aa-4303-9dd5-0f5295e6a88d" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_563acd82-ad49-420c-bde5-9fe81ba03764" xlink:to="loc_srt_MinimumMember_516c967c-46aa-4303-9dd5-0f5295e6a88d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_3c1a76cc-855c-4e95-9dc7-79c036312a0d" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_563acd82-ad49-420c-bde5-9fe81ba03764" xlink:to="loc_srt_MaximumMember_3c1a76cc-855c-4e95-9dc7-79c036312a0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_WeightedAverageMember_b84a412d-023a-4d41-b883-551c3c113618" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_WeightedAverageMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_563acd82-ad49-420c-bde5-9fe81ba03764" xlink:to="loc_srt_WeightedAverageMember_b84a412d-023a-4d41-b883-551c3c113618" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81308161-88aa-4489-aede-b31c68e8e4ad" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable_3c97f481-7774-4159-9139-755b9a1a2c78" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81308161-88aa-4489-aede-b31c68e8e4ad" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_81308161-88aa-4489-aede-b31c68e8e4ad_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81308161-88aa-4489-aede-b31c68e8e4ad" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_81308161-88aa-4489-aede-b31c68e8e4ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_33b81f33-55f4-4f25-9e8e-ee8dd5a8a834" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_81308161-88aa-4489-aede-b31c68e8e4ad" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_33b81f33-55f4-4f25-9e8e-ee8dd5a8a834" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_LeedsAcquisitionHoldingsLLCMember_e783f0ed-7686-4a2e-878c-f090f48a02ff" xlink:href="glad-20240630.xsd#glad_LeedsAcquisitionHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_33b81f33-55f4-4f25-9e8e-ee8dd5a8a834" xlink:to="loc_glad_LeedsAcquisitionHoldingsLLCMember_e783f0ed-7686-4a2e-878c-f090f48a02ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FunkoAcquisitionHoldingsLLCMember_faa8f6c4-7084-4744-9900-823c51aaf997" xlink:href="glad-20240630.xsd#glad_FunkoAcquisitionHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_33b81f33-55f4-4f25-9e8e-ee8dd5a8a834" xlink:to="loc_glad_FunkoAcquisitionHoldingsLLCMember_faa8f6c4-7084-4744-9900-823c51aaf997" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_89b0be8e-2b6f-4be3-82cb-bc4573af0c03" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_d35e5325-2c3d-474a-9aa1-b4abeeffa192" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_89b0be8e-2b6f-4be3-82cb-bc4573af0c03" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentOwnedFairValueMeasurementInput_65f0545c-19b2-486f-90f2-c9044941fb2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentOwnedFairValueMeasurementInput"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems_d35e5325-2c3d-474a-9aa1-b4abeeffa192" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentOwnedFairValueMeasurementInput_65f0545c-19b2-486f-90f2-c9044941fb2f" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/INVESTMENTSFairValueAssetsMeasuredonRecurringBasisUnobservableInputReconciliationDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#INVESTMENTSFairValueAssetsMeasuredonRecurringBasisUnobservableInputReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/INVESTMENTSFairValueAssetsMeasuredonRecurringBasisUnobservableInputReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_facb7324-d250-4dbd-8fbe-ea3a76ff5a81" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_0f1bdff6-c5ee-4596-b5de-1ef6d85455cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_facb7324-d250-4dbd-8fbe-ea3a76ff5a81" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_0f1bdff6-c5ee-4596-b5de-1ef6d85455cb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByAssetClassAxis_c619a0a2-e436-4e50-bbbb-6cfec734b380" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByAssetClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_0f1bdff6-c5ee-4596-b5de-1ef6d85455cb" xlink:to="loc_us-gaap_FairValueByAssetClassAxis_c619a0a2-e436-4e50-bbbb-6cfec734b380" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c619a0a2-e436-4e50-bbbb-6cfec734b380_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_c619a0a2-e436-4e50-bbbb-6cfec734b380" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_c619a0a2-e436-4e50-bbbb-6cfec734b380_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1e00f4f8-6c72-45fd-b876-3a13cca69089" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByAssetClassAxis_c619a0a2-e436-4e50-bbbb-6cfec734b380" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1e00f4f8-6c72-45fd-b876-3a13cca69089" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_1e00f4f8-6c72-45fd-b876-3a13cca69089" xlink:to="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_a3c76b01-5ff6-4bca-9588-7ad012c532b7" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_a3c76b01-5ff6-4bca-9588-7ad012c532b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_f7e0c1ac-3fd5-452a-8b4b-d79a79dd35ee" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_f7e0c1ac-3fd5-452a-8b4b-d79a79dd35ee" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_1ee483e5-9dd9-4d79-8f3e-ea11bf448c85" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:to="loc_us-gaap_UnsecuredDebtMember_1ee483e5-9dd9-4d79-8f3e-ea11bf448c85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_85af078d-a85c-478a-bcd6-05bf191fa4d4" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:to="loc_glad_PreferredEquityMember_85af078d-a85c-478a-bcd6-05bf191fa4d4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_72609c94-db1d-4abd-91a9-82c84a6192bd" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentsMember_95b6ca0c-4a84-489e-a660-0525f7e3fbbe" xlink:to="loc_glad_CommonEquityEquivalentsMember_72609c94-db1d-4abd-91a9-82c84a6192bd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_6cc76bab-3db0-467d-a2f1-2433a179e897" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTable_0f1bdff6-c5ee-4596-b5de-1ef6d85455cb" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_6cc76bab-3db0-467d-a2f1-2433a179e897" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_6cc76bab-3db0-467d-a2f1-2433a179e897_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_6cc76bab-3db0-467d-a2f1-2433a179e897" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_6cc76bab-3db0-467d-a2f1-2433a179e897_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_dcd979d7-f17b-4d3a-94b5-0660da767789" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_6cc76bab-3db0-467d-a2f1-2433a179e897" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_dcd979d7-f17b-4d3a-94b5-0660da767789" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtAndEquitySecuritiesRealizedGainLossMember_e6223ed4-1886-4d93-ae52-d2169dcbffc0" xlink:href="glad-20240630.xsd#glad_DebtAndEquitySecuritiesRealizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_dcd979d7-f17b-4d3a-94b5-0660da767789" xlink:to="loc_glad_DebtAndEquitySecuritiesRealizedGainLossMember_e6223ed4-1886-4d93-ae52-d2169dcbffc0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtAndEquitySecuritiesUnrealizedGainLossMember_0414115c-f6df-4d54-b53f-450592a8abd1" xlink:href="glad-20240630.xsd#glad_DebtAndEquitySecuritiesUnrealizedGainLossMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_dcd979d7-f17b-4d3a-94b5-0660da767789" xlink:to="loc_glad_DebtAndEquitySecuritiesUnrealizedGainLossMember_0414115c-f6df-4d54-b53f-450592a8abd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems_facb7324-d250-4dbd-8fbe-ea3a76ff5a81" xlink:to="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_c082cfeb-50d3-4bc6-84ab-91578f8cecc8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_c082cfeb-50d3-4bc6-84ab-91578f8cecc8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_1d048f86-ca8a-40d7-b37a-190a545a5376" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1_1d048f86-ca8a-40d7-b37a-190a545a5376" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetReversalOfPreviouslyRecordedAppreciationDepreciationUponRealization_0365f7d0-4d78-4771-920b-d36680bead72" xlink:href="glad-20240630.xsd#glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetReversalOfPreviouslyRecordedAppreciationDepreciationUponRealization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:to="loc_glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetReversalOfPreviouslyRecordedAppreciationDepreciationUponRealization_0365f7d0-4d78-4771-920b-d36680bead72" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationCalculationRollForward_4341dad6-d936-4827-b263-ef85a3e1bc33" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_caa9c54c-cbf2-48e6-8777-a78a06d49c88" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues_caa9c54c-cbf2-48e6-8777-a78a06d49c88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_1589f925-ba83-4171-a72e-c4cfb809f7a1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSettlements_1589f925-ba83-4171-a72e-c4cfb809f7a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_809fbfcd-a180-4b5f-a764-d4b347d35729" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales_809fbfcd-a180-4b5f-a764-d4b347d35729" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet_88281935-8a57-4399-a236-ecb29ae8c931" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlementsAbstract_fe7aaee0-e085-48eb-9b45-70fd63d11f7f" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet_88281935-8a57-4399-a236-ecb29ae8c931" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue_acf7f0d5-f13a-4200-8899-f690b540ea31" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/INVESTMENTSNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#INVESTMENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/INVESTMENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:to="loc_us-gaap_InvestmentTypeAxis_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_1108f904-9bf9-4568-b9af-5018396fa9ee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_eb33dc47-1d0a-4ac1-8acc-d49c16f44ddf" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_1108f904-9bf9-4568-b9af-5018396fa9ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrincipalOrProprietaryTransactionsMember_6020425b-9970-456a-b43e-c2e81fd54a55" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PrincipalOrProprietaryTransactionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_1108f904-9bf9-4568-b9af-5018396fa9ee" xlink:to="loc_us-gaap_PrincipalOrProprietaryTransactionsMember_6020425b-9970-456a-b43e-c2e81fd54a55" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SyndicatedInvestmentsMember_a57f753b-17b3-44bd-aa0a-38dc79e7b4c5" xlink:href="glad-20240630.xsd#glad_SyndicatedInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_1108f904-9bf9-4568-b9af-5018396fa9ee" xlink:to="loc_glad_SyndicatedInvestmentsMember_a57f753b-17b3-44bd-aa0a-38dc79e7b4c5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_b8199168-eb48-4c8f-a3fe-969cec1ed5b6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_b8199168-eb48-4c8f-a3fe-969cec1ed5b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_b8199168-eb48-4c8f-a3fe-969cec1ed5b6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_b8199168-eb48-4c8f-a3fe-969cec1ed5b6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_b8199168-eb48-4c8f-a3fe-969cec1ed5b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_88aab3b2-c442-49c5-a280-e1136a691897" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_b8199168-eb48-4c8f-a3fe-969cec1ed5b6" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_88aab3b2-c442-49c5-a280-e1136a691897" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentPortfolioBenchmarkMember_6fe18d0b-ddd4-4a3c-8d42-1b75606ff429" xlink:href="glad-20240630.xsd#glad_InvestmentPortfolioBenchmarkMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_88aab3b2-c442-49c5-a280-e1136a691897" xlink:to="loc_glad_InvestmentPortfolioBenchmarkMember_6fe18d0b-ddd4-4a3c-8d42-1b75606ff429" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_1c99d8a4-9405-43b8-b996-9a3ed297ebbd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_1c99d8a4-9405-43b8-b996-9a3ed297ebbd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_1c99d8a4-9405-43b8-b996-9a3ed297ebbd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1c99d8a4-9405-43b8-b996-9a3ed297ebbd" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_1c99d8a4-9405-43b8-b996-9a3ed297ebbd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_acc21b66-e124-4331-839e-3fa6fc262823" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_1c99d8a4-9405-43b8-b996-9a3ed297ebbd" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_acc21b66-e124-4331-839e-3fa6fc262823" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentTypeConcentrationRiskMember_434d88ec-0756-46fc-ad29-a1d97fe3518c" xlink:href="glad-20240630.xsd#glad_InvestmentTypeConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_acc21b66-e124-4331-839e-3fa6fc262823" xlink:to="loc_glad_InvestmentTypeConcentrationRiskMember_434d88ec-0756-46fc-ad29-a1d97fe3518c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_396e197a-3b31-45e4-ba28-4c6d451172f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_acc21b66-e124-4331-839e-3fa6fc262823" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_396e197a-3b31-45e4-ba28-4c6d451172f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_912d9eb9-aaa8-408a-b013-47956a6d2bb9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_912d9eb9-aaa8-408a-b013-47956a6d2bb9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_912d9eb9-aaa8-408a-b013-47956a6d2bb9_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_912d9eb9-aaa8-408a-b013-47956a6d2bb9" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_912d9eb9-aaa8-408a-b013-47956a6d2bb9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_912d9eb9-aaa8-408a-b013-47956a6d2bb9" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_QualityEnvironmentalMidcoIncMember_2172922f-5a38-4f53-9ce3-0a192bc4c16e" xlink:href="glad-20240630.xsd#glad_QualityEnvironmentalMidcoIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_QualityEnvironmentalMidcoIncMember_2172922f-5a38-4f53-9ce3-0a192bc4c16e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CafeZupasMember_453c114a-737d-4a2a-a9f7-984f59a45b19" xlink:href="glad-20240630.xsd#glad_CafeZupasMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_CafeZupasMember_453c114a-737d-4a2a-a9f7-984f59a45b19" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PIC360LLCMember_23829121-8b69-4c28-b6ba-18bd56e2385a" xlink:href="glad-20240630.xsd#glad_PIC360LLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_PIC360LLCMember_23829121-8b69-4c28-b6ba-18bd56e2385a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ALSEducationLLCMember_61900654-99ee-4f51-8a96-2b3000b63a1a" xlink:href="glad-20240630.xsd#glad_ALSEducationLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_ALSEducationLLCMember_61900654-99ee-4f51-8a96-2b3000b63a1a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_LeadpointBusinessServicesLLCMember_ffa09bca-42d9-4e4b-8877-0ea54dc613d6" xlink:href="glad-20240630.xsd#glad_LeadpointBusinessServicesLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_LeadpointBusinessServicesLLCMember_ffa09bca-42d9-4e4b-8877-0ea54dc613d6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaltStrawLLCMember_44fb949d-3c16-4cbc-bb32-a4101f794387" xlink:href="glad-20240630.xsd#glad_SaltStrawLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_SaltStrawLLCMember_44fb949d-3c16-4cbc-bb32-a4101f794387" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SpaceCoHoldingsLLCMember_c8119de4-b5e2-4e83-9e25-a5638f7ea6a9" xlink:href="glad-20240630.xsd#glad_SpaceCoHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_SpaceCoHoldingsLLCMember_c8119de4-b5e2-4e83-9e25-a5638f7ea6a9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PerimeterSolutionsGroupMember_7adb56eb-87c7-4806-bf78-4edf3e86cde8" xlink:href="glad-20240630.xsd#glad_PerimeterSolutionsGroupMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_PerimeterSolutionsGroupMember_7adb56eb-87c7-4806-bf78-4edf3e86cde8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TrowbridgeChicagoLLCMember_b84a6201-0022-487b-acb5-f305bf54af4a" xlink:href="glad-20240630.xsd#glad_TrowbridgeChicagoLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_TrowbridgeChicagoLLCMember_b84a6201-0022-487b-acb5-f305bf54af4a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TotalAccessElevatorLLCMember_e0141973-c6a9-4f11-be32-5aa9bff3aa6d" xlink:href="glad-20240630.xsd#glad_TotalAccessElevatorLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_TotalAccessElevatorLLCMember_e0141973-c6a9-4f11-be32-5aa9bff3aa6d" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HomeHealthcareLLCGivingHomeMember_8489e9de-8cef-4624-986c-9740d21f5605" xlink:href="glad-20240630.xsd#glad_HomeHealthcareLLCGivingHomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_HomeHealthcareLLCGivingHomeMember_8489e9de-8cef-4624-986c-9740d21f5605" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_GrayMatterSystemsLLCMember_580ad292-05d7-44d4-ab0f-4bb142d9a9e7" xlink:href="glad-20240630.xsd#glad_GrayMatterSystemsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_GrayMatterSystemsLLCMember_580ad292-05d7-44d4-ab0f-4bb142d9a9e7" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PansophicLearningLtd.Member_37484842-a491-436a-8609-7c0f1ece9db3" xlink:href="glad-20240630.xsd#glad_PansophicLearningLtd.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_PansophicLearningLtd.Member_37484842-a491-436a-8609-7c0f1ece9db3" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RPMFreightSystemsLLCMember_783ee87d-5219-4e6d-b24a-6e2a920c3fed" xlink:href="glad-20240630.xsd#glad_RPMFreightSystemsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_RPMFreightSystemsLLCMember_783ee87d-5219-4e6d-b24a-6e2a920c3fed" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FunkoAcquisitionHoldingsLLCMember_47ab6616-e4d0-4af0-88e6-0bdc7b484fd6" xlink:href="glad-20240630.xsd#glad_FunkoAcquisitionHoldingsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_FunkoAcquisitionHoldingsLLCMember_47ab6616-e4d0-4af0-88e6-0bdc7b484fd6" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_WorkforceQALLCMember_d07ffa46-c038-4e3f-9d71-8b312d369cd3" xlink:href="glad-20240630.xsd#glad_WorkforceQALLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_WorkforceQALLCMember_d07ffa46-c038-4e3f-9d71-8b312d369cd3" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CPMHoldingsIncMember_f172c686-264c-4ce7-9d1b-8837d7adc3ff" xlink:href="glad-20240630.xsd#glad_CPMHoldingsIncMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_456b9f1e-ffc5-43fb-a669-d8c0b2020da1" xlink:to="loc_glad_CPMHoldingsIncMember_f172c686-264c-4ce7-9d1b-8837d7adc3ff" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_05b62789-c975-47ee-bb31-86ec5999cdd7" xlink:to="loc_srt_MajorCustomersAxis_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4" xlink:to="loc_srt_NameOfMajorCustomerDomain_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_abbf1cca-cdae-4ee1-9fbb-cc471730b8ed" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_8a67cb99-c6fc-4d34-bf13-80827a0ef6c4" xlink:to="loc_srt_NameOfMajorCustomerDomain_abbf1cca-cdae-4ee1-9fbb-cc471730b8ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FiveLargestPortfolioInvestmentsMember_4cf8f8e9-958e-4a52-8120-63e82cf43110" xlink:href="glad-20240630.xsd#glad_FiveLargestPortfolioInvestmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_abbf1cca-cdae-4ee1-9fbb-cc471730b8ed" xlink:to="loc_glad_FiveLargestPortfolioInvestmentsMember_4cf8f8e9-958e-4a52-8120-63e82cf43110" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfProprietaryInvestments_5591941d-03cd-4475-b22e-5e2f1165816f" xlink:href="glad-20240630.xsd#glad_NumberOfProprietaryInvestments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_NumberOfProprietaryInvestments_5591941d-03cd-4475-b22e-5e2f1165816f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_6bbe9eab-b711-4b57-a557-c02d26c951b4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_6bbe9eab-b711-4b57-a557-c02d26c951b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_a9a8432d-8b82-4b78-bc8a-79124b40254d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_a9a8432d-8b82-4b78-bc8a-79124b40254d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_cd9d046f-62be-42b6-965f-589e86ddd93f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_cd9d046f-62be-42b6-965f-589e86ddd93f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount_45a97a77-79e8-44eb-bc62-3a0e992e2d8e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount_45a97a77-79e8-44eb-bc62-3a0e992e2d8e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount_f63904ff-56ba-4106-939d-cb43ebfff30f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmount_f63904ff-56ba-4106-939d-cb43ebfff30f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmountFunded_ec6c1950-6bb9-429b-ae68-8b0c64dd2609" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmountFunded"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_InvestmentCompanyFinancialSupportToInvesteeContractuallyRequiredAmountFunded_ec6c1950-6bb9-429b-ae68-8b0c64dd2609" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_2313a179-8a39-4513-ba8c-32ee053a8638" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_2313a179-8a39-4513-ba8c-32ee053a8638" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_8b36ad84-ba57-4336-9b6b-a2ca1c7ec571" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_8b36ad84-ba57-4336-9b6b-a2ca1c7ec571" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyPrepaymentFee_1e4ed2cf-457b-4e39-9257-9a196022964e" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyPrepaymentFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_InvestmentCompanyPrepaymentFee_1e4ed2cf-457b-4e39-9257-9a196022964e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_e2843d2b-ad39-4c98-a600-38a1ae0efc68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_e2843d2b-ad39-4c98-a600-38a1ae0efc68" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyCommittedCapital_f0da5a3e-e1c3-4023-8be2-8bf6a810f895" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyCommittedCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_InvestmentCompanyCommittedCapital_f0da5a3e-e1c3-4023-8be2-8bf6a810f895" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyDelayedDrawTermLoanCommitment_8cd75343-7815-4802-8a56-a7a5e7647114" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyDelayedDrawTermLoanCommitment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_InvestmentCompanyDelayedDrawTermLoanCommitment_8cd75343-7815-4802-8a56-a7a5e7647114" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_815e0ecd-bdd2-48ec-be86-f397c1a16566" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquityMethodInvestmentDividendsOrDistributions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_us-gaap_EquityMethodInvestmentDividendsOrDistributions_815e0ecd-bdd2-48ec-be86-f397c1a16566" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ProceedsFromDispositionOfInvestmentPrepaymentFees_a2dc81fa-66d3-475f-884d-902894cf07a7" xlink:href="glad-20240630.xsd#glad_ProceedsFromDispositionOfInvestmentPrepaymentFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_ProceedsFromDispositionOfInvestmentPrepaymentFees_a2dc81fa-66d3-475f-884d-902894cf07a7" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfInvestmentPortfolioCompany_3ad2c9e3-a487-4439-89b7-63c18a9abd93" xlink:href="glad-20240630.xsd#glad_NumberOfInvestmentPortfolioCompany"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_NumberOfInvestmentPortfolioCompany_3ad2c9e3-a487-4439-89b7-63c18a9abd93" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfStatesWherePortfolioCompanyInvestmentsAreLocated_3499aaeb-f870-4e9f-9f48-84c89a40cfa6" xlink:href="glad-20240630.xsd#glad_NumberOfStatesWherePortfolioCompanyInvestmentsAreLocated"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_NumberOfStatesWherePortfolioCompanyInvestmentsAreLocated_3499aaeb-f870-4e9f-9f48-84c89a40cfa6" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_NumberOfIndustriesInvestedIn_95ae4c31-375f-41d6-80b0-b5975c7423b3" xlink:href="glad-20240630.xsd#glad_NumberOfIndustriesInvestedIn"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_NumberOfIndustriesInvestedIn_95ae4c31-375f-41d6-80b0-b5975c7423b3" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_WeightedAverageInvestmentOwnedAtCostAmount_d5e9c030-6d09-417d-a483-7366d9c50e83" xlink:href="glad-20240630.xsd#glad_WeightedAverageInvestmentOwnedAtCostAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_WeightedAverageInvestmentOwnedAtCostAmount_d5e9c030-6d09-417d-a483-7366d9c50e83" xlink:type="arc" order="18"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyGrossReceivablesFromPortfolioCompanies_13c7c709-9c4a-4031-8e3a-809f0ea3aae1" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyGrossReceivablesFromPortfolioCompanies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_InvestmentCompanyGrossReceivablesFromPortfolioCompanies_13c7c709-9c4a-4031-8e3a-809f0ea3aae1" xlink:type="arc" order="19"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyAllowanceForUncollectibleReceivables_01b95c31-18a1-44c4-b895-7e5d5a4df403" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyAllowanceForUncollectibleReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_ce3192f4-d856-4ebc-869e-65c6aea7756d" xlink:to="loc_glad_InvestmentCompanyAllowanceForUncollectibleReceivables_01b95c31-18a1-44c4-b895-7e5d5a4df403" xlink:type="arc" order="20"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/INVESTMENTSSummaryInvestmentHoldingsDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#INVESTMENTSSummaryInvestmentHoldingsDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/INVESTMENTSSummaryInvestmentHoldingsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_0892e68c-3f87-4af8-a95e-cbe50c2a843a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SummaryOfInvestmentHoldingsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_0892e68c-3f87-4af8-a95e-cbe50c2a843a" xlink:to="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeAxis_6f7c78d0-b434-4da0-bf87-1af13ba547c9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:to="loc_us-gaap_InvestmentTypeAxis_6f7c78d0-b434-4da0-bf87-1af13ba547c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_6f7c78d0-b434-4da0-bf87-1af13ba547c9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InvestmentTypeAxis_6f7c78d0-b434-4da0-bf87-1af13ba547c9" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_6f7c78d0-b434-4da0-bf87-1af13ba547c9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentTypeCategorizationMember_d4185b70-3c2e-4127-91d7-f7e0d5356304" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentTypeCategorizationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InvestmentTypeAxis_6f7c78d0-b434-4da0-bf87-1af13ba547c9" xlink:to="loc_us-gaap_InvestmentTypeCategorizationMember_d4185b70-3c2e-4127-91d7-f7e0d5356304" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesMember_71efbf91-3bb9-4ef0-b342-220bdd893a19" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_d4185b70-3c2e-4127-91d7-f7e0d5356304" xlink:to="loc_us-gaap_DebtSecuritiesMember_71efbf91-3bb9-4ef0-b342-220bdd893a19" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_541033ca-b82b-436c-814f-6ae2caef6884" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredFirstLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_71efbf91-3bb9-4ef0-b342-220bdd893a19" xlink:to="loc_glad_DebtSecuritiesSecuredFirstLienDebtMember_541033ca-b82b-436c-814f-6ae2caef6884" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_fbe41974-32cd-4612-a0e8-6721602616f2" xlink:href="glad-20240630.xsd#glad_DebtSecuritiesSecuredSecondLienDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_71efbf91-3bb9-4ef0-b342-220bdd893a19" xlink:to="loc_glad_DebtSecuritiesSecuredSecondLienDebtMember_fbe41974-32cd-4612-a0e8-6721602616f2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnsecuredDebtMember_61696e46-5de2-4c95-b36d-d3a17f593c49" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnsecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesMember_71efbf91-3bb9-4ef0-b342-220bdd893a19" xlink:to="loc_us-gaap_UnsecuredDebtMember_61696e46-5de2-4c95-b36d-d3a17f593c49" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesMember_3e556b80-a124-4554-9bbc-b311b32cb8cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentTypeCategorizationMember_d4185b70-3c2e-4127-91d7-f7e0d5356304" xlink:to="loc_us-gaap_EquitySecuritiesMember_3e556b80-a124-4554-9bbc-b311b32cb8cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PreferredEquityMember_bb900638-e203-4a4c-aebd-6d4d8812b875" xlink:href="glad-20240630.xsd#glad_PreferredEquityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesMember_3e556b80-a124-4554-9bbc-b311b32cb8cf" xlink:to="loc_glad_PreferredEquityMember_bb900638-e203-4a4c-aebd-6d4d8812b875" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonEquityEquivalentsMember_9c063335-c16b-4bef-87a1-429884b1c694" xlink:href="glad-20240630.xsd#glad_CommonEquityEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesMember_3e556b80-a124-4554-9bbc-b311b32cb8cf" xlink:to="loc_glad_CommonEquityEquivalentsMember_9c063335-c16b-4bef-87a1-429884b1c694" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d432edbe-d116-489f-bdf3-a23c092045dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_fdcc8aa4-2c93-4a6f-8f76-f904a8aeeefb" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d432edbe-d116-489f-bdf3-a23c092045dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedAtCostMember_44e49660-7a8e-4580-b569-bb0c49136783" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedAtCostMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d432edbe-d116-489f-bdf3-a23c092045dc" xlink:to="loc_glad_InvestmentOwnedAtCostMember_44e49660-7a8e-4580-b569-bb0c49136783" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentOwnedAtFairValueMember_814cefba-68c2-4b3b-aede-ab59fa9ac756" xlink:href="glad-20240630.xsd#glad_InvestmentOwnedAtFairValueMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_d432edbe-d116-489f-bdf3-a23c092045dc" xlink:to="loc_glad_InvestmentOwnedAtFairValueMember_814cefba-68c2-4b3b-aede-ab59fa9ac756" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_edfea6c1-501f-4c21-b172-ea994085b1a7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_edfea6c1-501f-4c21-b172-ea994085b1a7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_edfea6c1-501f-4c21-b172-ea994085b1a7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_edfea6c1-501f-4c21-b172-ea994085b1a7" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_edfea6c1-501f-4c21-b172-ea994085b1a7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_68cdcb50-49bc-497d-b505-644633dff7db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_edfea6c1-501f-4c21-b172-ea994085b1a7" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_68cdcb50-49bc-497d-b505-644633dff7db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentTypeConcentrationRiskMember_59ca512a-1fe4-4cfc-86a7-055dabdd8184" xlink:href="glad-20240630.xsd#glad_InvestmentTypeConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_68cdcb50-49bc-497d-b505-644633dff7db" xlink:to="loc_glad_InvestmentTypeConcentrationRiskMember_59ca512a-1fe4-4cfc-86a7-055dabdd8184" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_IndustryConcentrationRiskMember_e178a570-ca49-4b82-a1e3-f5322a83973d" xlink:href="glad-20240630.xsd#glad_IndustryConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_68cdcb50-49bc-497d-b505-644633dff7db" xlink:to="loc_glad_IndustryConcentrationRiskMember_e178a570-ca49-4b82-a1e3-f5322a83973d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_GeographicRegionsConcentrationRiskMember_c431836d-ef66-4d91-af1c-a6927519617d" xlink:href="glad-20240630.xsd#glad_GeographicRegionsConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_68cdcb50-49bc-497d-b505-644633dff7db" xlink:to="loc_glad_GeographicRegionsConcentrationRiskMember_c431836d-ef66-4d91-af1c-a6927519617d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a11be81-8a81-4b59-b3c1-12b8c40fe95d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesByIndustryAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:to="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a11be81-8a81-4b59-b3c1-12b8c40fe95d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_7a11be81-8a81-4b59-b3c1-12b8c40fe95d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a11be81-8a81-4b59-b3c1-12b8c40fe95d" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_7a11be81-8a81-4b59-b3c1-12b8c40fe95d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EquitySecuritiesIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EquitySecuritiesByIndustryAxis_7a11be81-8a81-4b59-b3c1-12b8c40fe95d" xlink:to="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateServicesMember_3672b61b-8556-49e8-95f7-bb450a98e153" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_DiversifiedConglomerateServicesMember_3672b61b-8556-49e8-95f7-bb450a98e153" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DiversifiedConglomerateManufacturingMember_52825fa7-09ef-4edc-9c5e-34305d564202" xlink:href="glad-20240630.xsd#glad_DiversifiedConglomerateManufacturingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_DiversifiedConglomerateManufacturingMember_52825fa7-09ef-4edc-9c5e-34305d564202" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AerospaceAndDefenseMember_8fb9db87-2baa-490f-a507-3e406edd1d1a" xlink:href="glad-20240630.xsd#glad_AerospaceAndDefenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_AerospaceAndDefenseMember_8fb9db87-2baa-490f-a507-3e406edd1d1a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_HealthcareEducationAndChildcareMember_6f4a452f-7557-46d4-bef9-bd6aeda7cce0" xlink:href="glad-20240630.xsd#glad_HealthcareEducationAndChildcareMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_HealthcareEducationAndChildcareMember_6f4a452f-7557-46d4-bef9-bd6aeda7cce0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BeverageFoodAndTobaccoMember_6ccd6bb7-5093-40c7-8637-771e70480bb0" xlink:href="glad-20240630.xsd#glad_BeverageFoodAndTobaccoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_BeverageFoodAndTobaccoMember_6ccd6bb7-5093-40c7-8637-771e70480bb0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_AutomobileMember_81f76bd9-a0bd-4348-bc2a-fefcd2a00404" xlink:href="glad-20240630.xsd#glad_AutomobileMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_AutomobileMember_81f76bd9-a0bd-4348-bc2a-fefcd2a00404" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OilAndGasIndustryMember_01989265-7576-4cb2-9068-d05386e50d25" xlink:href="glad-20240630.xsd#glad_OilAndGasIndustryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_OilAndGasIndustryMember_01989265-7576-4cb2-9068-d05386e50d25" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CargoTransportationMember_dd6a0de3-ea2a-4ebe-b31d-01c6e354ce0a" xlink:href="glad-20240630.xsd#glad_CargoTransportationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_CargoTransportationMember_dd6a0de3-ea2a-4ebe-b31d-01c6e354ce0a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PersonalAndNonDurableConsumerProductsMember_9c172082-cfa8-4301-a477-e250e25c384a" xlink:href="glad-20240630.xsd#glad_PersonalAndNonDurableConsumerProductsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_PersonalAndNonDurableConsumerProductsMember_9c172082-cfa8-4301-a477-e250e25c384a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_MachineryMember_24e12d06-6922-4b90-a399-180f923579f0" xlink:href="glad-20240630.xsd#glad_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_MachineryMember_24e12d06-6922-4b90-a399-180f923579f0" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OtherSectorsMember_6b05b66a-3c6e-4ca6-a0a3-b2c66679a395" xlink:href="glad-20240630.xsd#glad_OtherSectorsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquitySecuritiesIndustryMember_a915d4f6-2416-4a14-a5d9-707df176f5f6" xlink:to="loc_glad_OtherSectorsMember_6b05b66a-3c6e-4ca6-a0a3-b2c66679a395" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_365f18cc-1a87-41f4-a76b-2bf5f356b179" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsTable_4818d998-ba98-473f-b92f-a893a9d1bd66" xlink:to="loc_srt_StatementGeographicalAxis_365f18cc-1a87-41f4-a76b-2bf5f356b179" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_365f18cc-1a87-41f4-a76b-2bf5f356b179_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_365f18cc-1a87-41f4-a76b-2bf5f356b179" xlink:to="loc_srt_SegmentGeographicalDomain_365f18cc-1a87-41f4-a76b-2bf5f356b179_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_365f18cc-1a87-41f4-a76b-2bf5f356b179" xlink:to="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SouthRegionMember_1ea62068-ef98-4a86-9671-dc0c806be8be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SouthRegionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:to="loc_us-gaap_SouthRegionMember_1ea62068-ef98-4a86-9671-dc0c806be8be" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WestRegionMember_28cd9012-9abc-43a8-8d07-b5e10853f256" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WestRegionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:to="loc_us-gaap_WestRegionMember_28cd9012-9abc-43a8-8d07-b5e10853f256" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MidwestRegionMember_6fabec28-e480-431e-ae35-d77b44e7b92b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MidwestRegionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:to="loc_us-gaap_MidwestRegionMember_6fabec28-e480-431e-ae35-d77b44e7b92b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NortheastRegionMember_14eceadc-d7a7-46c6-b801-90dfb1593049" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NortheastRegionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_a045b1da-562a-48c0-924c-9d3a95c07899" xlink:to="loc_us-gaap_NortheastRegionMember_14eceadc-d7a7-46c6-b801-90dfb1593049" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtCost_dd648b71-7ba7-4e6c-819c-2a2ef1ac63d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_0892e68c-3f87-4af8-a95e-cbe50c2a843a" xlink:to="loc_us-gaap_InvestmentOwnedAtCost_dd648b71-7ba7-4e6c-819c-2a2ef1ac63d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_f6708bd0-df51-4ad8-90fa-3de514b0b9f8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_0892e68c-3f87-4af8-a95e-cbe50c2a843a" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_f6708bd0-df51-4ad8-90fa-3de514b0b9f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_987cc46f-6b7d-4903-9b9f-e09fdfebc6b2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SummaryOfInvestmentHoldingsLineItems_0892e68c-3f87-4af8-a95e-cbe50c2a843a" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_987cc46f-6b7d-4903-9b9f-e09fdfebc6b2" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#RELATEDPARTYTRANSACTIONSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/RELATEDPARTYTRANSACTIONSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_df495e4b-e42d-49f0-a71f-dabd7e18ef01" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:to="loc_srt_RangeAxis_df495e4b-e42d-49f0-a71f-dabd7e18ef01" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_df495e4b-e42d-49f0-a71f-dabd7e18ef01_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_df495e4b-e42d-49f0-a71f-dabd7e18ef01" xlink:to="loc_srt_RangeMember_df495e4b-e42d-49f0-a71f-dabd7e18ef01_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_497c8a6a-aa0c-486f-bc28-7eb9599dd09f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_df495e4b-e42d-49f0-a71f-dabd7e18ef01" xlink:to="loc_srt_RangeMember_497c8a6a-aa0c-486f-bc28-7eb9599dd09f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_7de3090b-2a7f-4738-8281-42cf25c2375b" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_497c8a6a-aa0c-486f-bc28-7eb9599dd09f" xlink:to="loc_srt_MaximumMember_7de3090b-2a7f-4738-8281-42cf25c2375b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_e04e181c-201b-42fb-8c5f-3fba4034d1ee" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_497c8a6a-aa0c-486f-bc28-7eb9599dd09f" xlink:to="loc_srt_MinimumMember_e04e181c-201b-42fb-8c5f-3fba4034d1ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipAxis_79e911ef-771a-4fa6-95c8-f369579398fb" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:to="loc_srt_OwnershipAxis_79e911ef-771a-4fa6-95c8-f369579398fb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_79e911ef-771a-4fa6-95c8-f369579398fb_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_OwnershipAxis_79e911ef-771a-4fa6-95c8-f369579398fb" xlink:to="loc_srt_OwnershipDomain_79e911ef-771a-4fa6-95c8-f369579398fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_OwnershipDomain_db7055d6-77cf-4556-a55e-8b868b9d7cc5" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_OwnershipDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_OwnershipAxis_79e911ef-771a-4fa6-95c8-f369579398fb" xlink:to="loc_srt_OwnershipDomain_db7055d6-77cf-4556-a55e-8b868b9d7cc5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdviserMember_9fa3e3c0-093e-444c-ad06-bdc0b57c2f6f" xlink:href="glad-20240630.xsd#glad_TheAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_db7055d6-77cf-4556-a55e-8b868b9d7cc5" xlink:to="loc_glad_TheAdviserMember_9fa3e3c0-093e-444c-ad06-bdc0b57c2f6f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdministratorMember_cc475abf-c819-484b-83c2-41b51b368c3c" xlink:href="glad-20240630.xsd#glad_TheAdministratorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_db7055d6-77cf-4556-a55e-8b868b9d7cc5" xlink:to="loc_glad_TheAdministratorMember_cc475abf-c819-484b-83c2-41b51b368c3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_GladstoneSecuritiesLLCMember_f08c9ae3-2117-4c84-84d8-fb719303805b" xlink:href="glad-20240630.xsd#glad_GladstoneSecuritiesLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_OwnershipDomain_db7055d6-77cf-4556-a55e-8b868b9d7cc5" xlink:to="loc_glad_GladstoneSecuritiesLLCMember_f08c9ae3-2117-4c84-84d8-fb719303805b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualAxis_e4e0095b-07fa-41f5-8bad-c61890a356d9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:to="loc_srt_TitleOfIndividualAxis_e4e0095b-07fa-41f5-8bad-c61890a356d9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_e4e0095b-07fa-41f5-8bad-c61890a356d9_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_TitleOfIndividualAxis_e4e0095b-07fa-41f5-8bad-c61890a356d9" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_e4e0095b-07fa-41f5-8bad-c61890a356d9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_f91c5cad-14f2-457f-a656-66dcf734ce75" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_TitleOfIndividualWithRelationshipToEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_TitleOfIndividualAxis_e4e0095b-07fa-41f5-8bad-c61890a356d9" xlink:to="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_f91c5cad-14f2-457f-a656-66dcf734ce75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ChiefExecutiveOfficerMember_6b939e51-7394-47da-a4b8-f1e37df128f9" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ChiefExecutiveOfficerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TitleOfIndividualWithRelationshipToEntityDomain_f91c5cad-14f2-457f-a656-66dcf734ce75" xlink:to="loc_srt_ChiefExecutiveOfficerMember_6b939e51-7394-47da-a4b8-f1e37df128f9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb" xlink:to="loc_us-gaap_RelatedPartyDomain_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_dc6f4a55-1a92-4aa3-98ee-98a7cd5d4d61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_aa5cac58-efa6-4fa7-813a-230e5d3fa7fb" xlink:to="loc_us-gaap_RelatedPartyDomain_dc6f4a55-1a92-4aa3-98ee-98a7cd5d4d61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_28c4b991-49a5-4b76-b359-436335c52e7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_dc6f4a55-1a92-4aa3-98ee-98a7cd5d4d61" xlink:to="loc_us-gaap_RelatedPartyMember_28c4b991-49a5-4b76-b359-436335c52e7e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_e2566cc8-10a7-4723-9e52-43f4a9b4adf8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_a0d03247-920c-4e24-b16a-2633411fa348" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_e2566cc8-10a7-4723-9e52-43f4a9b4adf8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_e2566cc8-10a7-4723-9e52-43f4a9b4adf8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_e2566cc8-10a7-4723-9e52-43f4a9b4adf8" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_e2566cc8-10a7-4723-9e52-43f4a9b4adf8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_5eb30e21-e663-48a7-8640-12cbc9b0338a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_e2566cc8-10a7-4723-9e52-43f4a9b4adf8" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_5eb30e21-e663-48a7-8640-12cbc9b0338a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_GladstoneSecuritiesMember_13f3b8dd-863c-48db-98da-0655660963c3" xlink:href="glad-20240630.xsd#glad_GladstoneSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_5eb30e21-e663-48a7-8640-12cbc9b0338a" xlink:to="loc_glad_GladstoneSecuritiesMember_13f3b8dd-863c-48db-98da-0655660963c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_GladstoneInvestmentCorporationMember_19dad692-283d-4a21-bf6c-780d86b646cb" xlink:href="glad-20240630.xsd#glad_GladstoneInvestmentCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_5eb30e21-e663-48a7-8640-12cbc9b0338a" xlink:to="loc_glad_GladstoneInvestmentCorporationMember_19dad692-283d-4a21-bf6c-780d86b646cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ManagementAndServiceFeesBaseRate_c753d8a5-d48c-46ec-b2c1-34fb3b38c8ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ManagementAndServiceFeesBaseRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_ManagementAndServiceFeesBaseRate_c753d8a5-d48c-46ec-b2c1-34fb3b38c8ac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_3fbc0758-f036-415a-8a62-ad502fc8acd0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_MinorityInterestOwnershipPercentageByParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_MinorityInterestOwnershipPercentageByParent_3fbc0758-f036-415a-8a62-ad502fc8acd0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ManagementAndServiceFeesPercentOfFeeCreditsAgainstBaseManagementFee_4085a2de-4013-44d7-9602-6a229c6df20b" xlink:href="glad-20240630.xsd#glad_ManagementAndServiceFeesPercentOfFeeCreditsAgainstBaseManagementFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_ManagementAndServiceFeesPercentOfFeeCreditsAgainstBaseManagementFee_4085a2de-4013-44d7-9602-6a229c6df20b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ManagementAndServiceFeeNetOfCredit_82a0e8f9-5fc5-40f9-b6e2-caa6ea049623" xlink:href="glad-20240630.xsd#glad_ManagementAndServiceFeeNetOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_ManagementAndServiceFeeNetOfCredit_82a0e8f9-5fc5-40f9-b6e2-caa6ea049623" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_ManagementAndServiceFeesLoans_15eaaf32-9ce0-4451-84f6-e6e4b7cf2eec" xlink:href="glad-20240630.xsd#glad_ManagementAndServiceFeesLoans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_ManagementAndServiceFeesLoans_15eaaf32-9ce0-4451-84f6-e6e4b7cf2eec" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation_664e8629-b055-4642-821d-aaa3cc952f61" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation_664e8629-b055-4642-821d-aaa3cc952f61" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyIncentiveFeeWhenPreIncentiveFeeNetInvestmentIncomeDoesNotExceedHurdleRate_692db630-663a-4cf8-ab52-7f7bab0114d8" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyIncentiveFeeWhenPreIncentiveFeeNetInvestmentIncomeDoesNotExceedHurdleRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyIncentiveFeeWhenPreIncentiveFeeNetInvestmentIncomeDoesNotExceedHurdleRate_692db630-663a-4cf8-ab52-7f7bab0114d8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyPercentageOfPreIncentiveFeeNetInvestmentIncomeExceedsTheHurdleRate_00441785-2c9a-4df4-9556-b7b4b057e11e" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyPercentageOfPreIncentiveFeeNetInvestmentIncomeExceedsTheHurdleRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyPercentageOfPreIncentiveFeeNetInvestmentIncomeExceedsTheHurdleRate_00441785-2c9a-4df4-9556-b7b4b057e11e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyPreIncentiveFeeNetInvestmentIncomePercentThresholdOfNetAssets_62c35123-fb73-47ec-8a94-3c5058db3b16" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyPreIncentiveFeeNetInvestmentIncomePercentThresholdOfNetAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyPreIncentiveFeeNetInvestmentIncomePercentThresholdOfNetAssets_62c35123-fb73-47ec-8a94-3c5058db3b16" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyPercentOfPreIncentiveFeeNetInvestmentIncomeThatExceedsNetAssetsThreshold_bb284cf8-92d8-46a1-ab56-00af3b7e0791" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyPercentOfPreIncentiveFeeNetInvestmentIncomeThatExceedsNetAssetsThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyPercentOfPreIncentiveFeeNetInvestmentIncomeThatExceedsNetAssetsThreshold_bb284cf8-92d8-46a1-ab56-00af3b7e0791" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPercentage_6967a480-6d1b-4057-b972-1985fb4a02f3" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPercentage_6967a480-6d1b-4057-b972-1985fb4a02f3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPaidToTheAdviser_81002ef9-b020-43ff-ad42-0bce12bfb48d" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPaidToTheAdviser"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyCapitalGainsBasedIncentiveFeesPaidToTheAdviser_81002ef9-b020-43ff-ad42-0bce12bfb48d" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CapitalGainsBasedIncentiveFee_bc99ba42-c5a0-4626-8798-bb9c2d72f1cc" xlink:href="glad-20240630.xsd#glad_CapitalGainsBasedIncentiveFee"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_CapitalGainsBasedIncentiveFee_bc99ba42-c5a0-4626-8798-bb9c2d72f1cc" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FeeIncome_0d950e79-e4f8-4488-a1a2-8d17f14df8f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FeeIncome"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_FeeIncome_0d950e79-e4f8-4488-a1a2-8d17f14df8f3" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SellingCommissionsPercentage_960996db-5dd3-4cea-96a7-d2383be74d80" xlink:href="glad-20240630.xsd#glad_SellingCommissionsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_SellingCommissionsPercentage_960996db-5dd3-4cea-96a7-d2383be74d80" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DealerManagerFeePercentage_d82c2ae8-e4a2-4d86-ba6c-17a7daced22c" xlink:href="glad-20240630.xsd#glad_DealerManagerFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_DealerManagerFeePercentage_d82c2ae8-e4a2-4d86-ba6c-17a7daced22c" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_PaymentsForSellingCommissionsAndDealerManagerFees_974825bf-22e3-4fca-a690-0cd36587d207" xlink:href="glad-20240630.xsd#glad_PaymentsForSellingCommissionsAndDealerManagerFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_PaymentsForSellingCommissionsAndDealerManagerFees_974825bf-22e3-4fca-a690-0cd36587d207" xlink:type="arc" order="16"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyOtherOperatingExpensesDueToAdvisor_321753ec-4240-4ec3-867d-e66e896e131d" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyOtherOperatingExpensesDueToAdvisor"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_glad_InvestmentCompanyOtherOperatingExpensesDueToAdvisor_321753ec-4240-4ec3-867d-e66e896e131d" xlink:type="arc" order="17"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_f5411ab7-fc52-46e5-b4a6-a1f917e74041" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_bb37859e-79ff-4a74-ba48-db5a98ba104a" xlink:to="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_f5411ab7-fc52-46e5-b4a6-a1f917e74041" xlink:type="arc" order="18"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/RELATEDPARTYTRANSACTIONSScheduleofRelatedPartyFeesDueDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#RELATEDPARTYTRANSACTIONSScheduleofRelatedPartyFeesDueDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/RELATEDPARTYTRANSACTIONSScheduleofRelatedPartyFeesDueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionLineItems_1e2078f3-cd9a-48ea-9489-c5d728201b63" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_8690234b-2ccd-4fda-b90c-573da2303587" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_1e2078f3-cd9a-48ea-9489-c5d728201b63" xlink:to="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_8690234b-2ccd-4fda-b90c-573da2303587" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c48f916c-586d-4bc7-ac65-ab9702fa99ec" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionsByRelatedPartyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_8690234b-2ccd-4fda-b90c-573da2303587" xlink:to="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c48f916c-586d-4bc7-ac65-ab9702fa99ec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_c48f916c-586d-4bc7-ac65-ab9702fa99ec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c48f916c-586d-4bc7-ac65-ab9702fa99ec" xlink:to="loc_us-gaap_RelatedPartyDomain_c48f916c-586d-4bc7-ac65-ab9702fa99ec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyDomain_e166a28c-ce83-4e03-a26b-3228e2b81014" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionsByRelatedPartyAxis_c48f916c-586d-4bc7-ac65-ab9702fa99ec" xlink:to="loc_us-gaap_RelatedPartyDomain_e166a28c-ce83-4e03-a26b-3228e2b81014" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyMember_f3a7b86a-0a18-42af-9639-a0cab28a7aa6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyDomain_e166a28c-ce83-4e03-a26b-3228e2b81014" xlink:to="loc_us-gaap_RelatedPartyMember_f3a7b86a-0a18-42af-9639-a0cab28a7aa6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionAxis_5f755c43-7322-4766-b54e-c57e5ea96b0d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_8690234b-2ccd-4fda-b90c-573da2303587" xlink:to="loc_us-gaap_RelatedPartyTransactionAxis_5f755c43-7322-4766-b54e-c57e5ea96b0d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_5f755c43-7322-4766-b54e-c57e5ea96b0d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_5f755c43-7322-4766-b54e-c57e5ea96b0d" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_5f755c43-7322-4766-b54e-c57e5ea96b0d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RelatedPartyTransactionDomain_86f3a274-a06a-45a9-8138-a2eafe3de089" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RelatedPartyTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RelatedPartyTransactionAxis_5f755c43-7322-4766-b54e-c57e5ea96b0d" xlink:to="loc_us-gaap_RelatedPartyTransactionDomain_86f3a274-a06a-45a9-8138-a2eafe3de089" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_BaseManagementFeeDueToAdviserMember_18fba913-0f9a-460d-91e1-50bbd9194319" xlink:href="glad-20240630.xsd#glad_BaseManagementFeeDueToAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_86f3a274-a06a-45a9-8138-a2eafe3de089" xlink:to="loc_glad_BaseManagementFeeDueToAdviserMember_18fba913-0f9a-460d-91e1-50bbd9194319" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_LoanServicingFeeDueToAdviserMember_dfbc1c4a-d07f-4e19-86e6-ddfa1a37935b" xlink:href="glad-20240630.xsd#glad_LoanServicingFeeDueToAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_86f3a274-a06a-45a9-8138-a2eafe3de089" xlink:to="loc_glad_LoanServicingFeeDueToAdviserMember_dfbc1c4a-d07f-4e19-86e6-ddfa1a37935b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_IncentiveFeeDueToAdviserMember_09b02fc5-3642-48f4-910d-5cf34edb1759" xlink:href="glad-20240630.xsd#glad_IncentiveFeeDueToAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionDomain_86f3a274-a06a-45a9-8138-a2eafe3de089" xlink:to="loc_glad_IncentiveFeeDueToAdviserMember_09b02fc5-3642-48f4-910d-5cf34edb1759" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CounterpartyNameAxis_063f6f88-ff56-4b47-aaea-529c75fb3ac8" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_CounterpartyNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable_8690234b-2ccd-4fda-b90c-573da2303587" xlink:to="loc_srt_CounterpartyNameAxis_063f6f88-ff56-4b47-aaea-529c75fb3ac8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_063f6f88-ff56-4b47-aaea-529c75fb3ac8_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CounterpartyNameAxis_063f6f88-ff56-4b47-aaea-529c75fb3ac8" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_063f6f88-ff56-4b47-aaea-529c75fb3ac8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e44858c0-2d57-4ad7-9828-1d2d580f154f" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_RepurchaseAgreementCounterpartyNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CounterpartyNameAxis_063f6f88-ff56-4b47-aaea-529c75fb3ac8" xlink:to="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e44858c0-2d57-4ad7-9828-1d2d580f154f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdviserMember_f17c293f-432e-4503-baa4-45a1695f7068" xlink:href="glad-20240630.xsd#glad_TheAdviserMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e44858c0-2d57-4ad7-9828-1d2d580f154f" xlink:to="loc_glad_TheAdviserMember_f17c293f-432e-4503-baa4-45a1695f7068" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TheAdministratorMember_356c70bf-ed24-474e-83d0-182e1c933723" xlink:href="glad-20240630.xsd#glad_TheAdministratorMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RepurchaseAgreementCounterpartyNameDomain_e44858c0-2d57-4ad7-9828-1d2d580f154f" xlink:to="loc_glad_TheAdministratorMember_356c70bf-ed24-474e-83d0-182e1c933723" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyBaseManagementFeeDueToAdviser_dc9089fa-bdfc-4706-b226-9d5baa51d326" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyBaseManagementFeeDueToAdviser"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_1e2078f3-cd9a-48ea-9489-c5d728201b63" xlink:to="loc_glad_InvestmentCompanyBaseManagementFeeDueToAdviser_dc9089fa-bdfc-4706-b226-9d5baa51d326" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_b8dc3855-b281-4a75-a3b7-f51418a0adb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableOtherCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RelatedPartyTransactionLineItems_1e2078f3-cd9a-48ea-9489-c5d728201b63" xlink:to="loc_us-gaap_AccountsPayableOtherCurrentAndNoncurrent_b8dc3855-b281-4a75-a3b7-f51418a0adb4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/BORROWINGSRevolvingLineofCreditNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#BORROWINGSRevolvingLineofCreditNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/BORROWINGSRevolvingLineofCreditNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_3127672e-c404-4634-9a84-6bd6f2352509" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:to="loc_us-gaap_CreditFacilityAxis_3127672e-c404-4634-9a84-6bd6f2352509" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_3127672e-c404-4634-9a84-6bd6f2352509_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_3127672e-c404-4634-9a84-6bd6f2352509" xlink:to="loc_us-gaap_CreditFacilityDomain_3127672e-c404-4634-9a84-6bd6f2352509_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_c58c52db-aae3-446a-a83a-c71b4f377744" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_3127672e-c404-4634-9a84-6bd6f2352509" xlink:to="loc_us-gaap_CreditFacilityDomain_c58c52db-aae3-446a-a83a-c71b4f377744" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_aa772a9c-3d16-4bdb-af7d-a16db6802401" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_c58c52db-aae3-446a-a83a-c71b4f377744" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_aa772a9c-3d16-4bdb-af7d-a16db6802401" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_d083b015-6fdb-4d9f-83f7-8274ad150387" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:to="loc_us-gaap_DebtInstrumentAxis_d083b015-6fdb-4d9f-83f7-8274ad150387" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d083b015-6fdb-4d9f-83f7-8274ad150387_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_d083b015-6fdb-4d9f-83f7-8274ad150387" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d083b015-6fdb-4d9f-83f7-8274ad150387_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_9dc6c7c0-3f80-4d43-a615-7d6a59fee6dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_d083b015-6fdb-4d9f-83f7-8274ad150387" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_9dc6c7c0-3f80-4d43-a615-7d6a59fee6dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditMember_72c242db-a1a2-4226-8053-bed2508bd94d" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_9dc6c7c0-3f80-4d43-a615-7d6a59fee6dc" xlink:to="loc_glad_RevolvingLineOfCreditMember_72c242db-a1a2-4226-8053-bed2508bd94d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo5Member_65dea501-6787-4bf3-98fe-1f42df73e924" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo5Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_RevolvingLineOfCreditMember_72c242db-a1a2-4226-8053-bed2508bd94d" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo5Member_65dea501-6787-4bf3-98fe-1f42df73e924" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo.6Member_9a4b7c32-cec0-4143-905b-3a2cdf1d2cf8" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo.6Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_RevolvingLineOfCreditMember_72c242db-a1a2-4226-8053-bed2508bd94d" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo.6Member_9a4b7c32-cec0-4143-905b-3a2cdf1d2cf8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo.7Member_6e44225a-fbd5-4f2c-8c39-2e52254abb7e" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo.7Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_RevolvingLineOfCreditMember_72c242db-a1a2-4226-8053-bed2508bd94d" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo.7Member_6e44225a-fbd5-4f2c-8c39-2e52254abb7e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_b884406d-7438-4e35-9af3-e0779b39e99d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_b884406d-7438-4e35-9af3-e0779b39e99d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_b884406d-7438-4e35-9af3-e0779b39e99d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b884406d-7438-4e35-9af3-e0779b39e99d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_b884406d-7438-4e35-9af3-e0779b39e99d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c6af728b-3dc1-46ac-8026-944d83e9efbc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_b884406d-7438-4e35-9af3-e0779b39e99d" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c6af728b-3dc1-46ac-8026-944d83e9efbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_6ff336c7-3172-4031-970d-216d47aee22a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_c6af728b-3dc1-46ac-8026-944d83e9efbc" xlink:to="loc_us-gaap_LineOfCreditMember_6ff336c7-3172-4031-970d-216d47aee22a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_3581866f-6270-4c7a-a3d2-e42d283437b1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_5acea95d-297c-48c6-8031-2b8542aef7f3" xlink:to="loc_us-gaap_VariableRateAxis_3581866f-6270-4c7a-a3d2-e42d283437b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_3581866f-6270-4c7a-a3d2-e42d283437b1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_3581866f-6270-4c7a-a3d2-e42d283437b1" xlink:to="loc_us-gaap_VariableRateDomain_3581866f-6270-4c7a-a3d2-e42d283437b1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_fb0ebd46-fc5c-48b4-afa9-5b846feca699" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_3581866f-6270-4c7a-a3d2-e42d283437b1" xlink:to="loc_us-gaap_VariableRateDomain_fb0ebd46-fc5c-48b4-afa9-5b846feca699" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_96dc634b-8f36-42fe-bc87-2202ce33245a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_fb0ebd46-fc5c-48b4-afa9-5b846feca699" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_96dc634b-8f36-42fe-bc87-2202ce33245a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SecuredOvernightFinancingRateSOFRTrancheOneMember_34b6286c-d338-4d39-8345-c4b89d7fde53" xlink:href="glad-20240630.xsd#glad_SecuredOvernightFinancingRateSOFRTrancheOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_96dc634b-8f36-42fe-bc87-2202ce33245a" xlink:to="loc_glad_SecuredOvernightFinancingRateSOFRTrancheOneMember_34b6286c-d338-4d39-8345-c4b89d7fde53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SecuredOvernightFinancingRateSOFRThereafterMember_3ea7b5cb-bff0-4d17-87dc-aec61b465b63" xlink:href="glad-20240630.xsd#glad_SecuredOvernightFinancingRateSOFRThereafterMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_96dc634b-8f36-42fe-bc87-2202ce33245a" xlink:to="loc_glad_SecuredOvernightFinancingRateSOFRThereafterMember_3ea7b5cb-bff0-4d17-87dc-aec61b465b63" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_422f4154-4a0c-4316-83d7-ee1352669aa0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_422f4154-4a0c-4316-83d7-ee1352669aa0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_LineOfCreditFacilityAccordionFeatureMaximumBorrowingCapacity_84fa9b3e-c5c1-4b44-b5f7-17481424dacb" xlink:href="glad-20240630.xsd#glad_LineOfCreditFacilityAccordionFeatureMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_LineOfCreditFacilityAccordionFeatureMaximumBorrowingCapacity_84fa9b3e-c5c1-4b44-b5f7-17481424dacb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_48ccd633-760e-47d1-8cb6-fdad8a474d79" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_48ccd633-760e-47d1-8cb6-fdad8a474d79" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantBorrowingBaseMinimumNumberOfObligors_074a0262-dca5-4072-9ec9-5ba1c24bd502" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantBorrowingBaseMinimumNumberOfObligors"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantBorrowingBaseMinimumNumberOfObligors_074a0262-dca5-4072-9ec9-5ba1c24bd502" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStock_8016554b-5e00-4451-a649-02407dabd138" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStock_8016554b-5e00-4451-a649-02407dabd138" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaised_0e10f4c4-36d3-45fa-8a18-aacf2e076f0d" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaised_0e10f4c4-36d3-45fa-8a18-aacf2e076f0d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockMinusPercentOfAnyEquityOrSubordinatedDebtRedeemedOrRetired_7a9d3569-c44f-4f40-884f-883c832c3f44" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockMinusPercentOfAnyEquityOrSubordinatedDebtRedeemedOrRetired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantRequiredMinimumNetWorthOfMandatoryRedeemableTermPreferredStockMinusPercentOfAnyEquityOrSubordinatedDebtRedeemedOrRetired_7a9d3569-c44f-4f40-884f-883c832c3f44" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaisedMinusAnyEquityOrSubordinatedDebtRedeemedOrRetired_752408d7-04ad-4a60-9659-86404fc8b9a3" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaisedMinusAnyEquityOrSubordinatedDebtRedeemedOrRetired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantNetWorthOfMandatoryRedeemableTermPreferredStockPlusPercentOfAllEquityAndSubordinatedDebtRaisedMinusAnyEquityOrSubordinatedDebtRedeemedOrRetired_752408d7-04ad-4a60-9659-86404fc8b9a3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DebtInstrumentCovenantSeniorSecurityIndebtednessRequiredMinimumAssetCoverageRatio_cbda1f80-32e8-430a-a1f5-7198f3347e6d" xlink:href="glad-20240630.xsd#glad_DebtInstrumentCovenantSeniorSecurityIndebtednessRequiredMinimumAssetCoverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_DebtInstrumentCovenantSeniorSecurityIndebtednessRequiredMinimumAssetCoverageRatio_cbda1f80-32e8-430a-a1f5-7198f3347e6d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageAmount_e86c61d8-9511-4cc0-93bb-022b1c3fbe83" xlink:href="glad-20240630.xsd#glad_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageAmount_e86c61d8-9511-4cc0-93bb-022b1c3fbe83" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio_bd1f52c4-6f9e-4cc2-be58-4ecffa188d00" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_us-gaap_InvestmentCompanySeniorSecurityIndebtednessAssetCoverageRatio_bd1f52c4-6f9e-4cc2-be58-4ecffa188d00" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyNumberOfObligor_3fffc687-02ae-4f9f-8d7b-b4b1e434c0d7" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyNumberOfObligor"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_199bc357-5451-4c39-a80d-977edb991c28" xlink:to="loc_glad_InvestmentCompanyNumberOfObligor_3fffc687-02ae-4f9f-8d7b-b4b1e434c0d7" xlink:type="arc" order="11"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/BORROWINGSScheduleofLineofCreditFacilitiesDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#BORROWINGSScheduleofLineofCreditFacilitiesDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/BORROWINGSScheduleofLineofCreditFacilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_8dea98ff-b41e-47aa-ba96-9043b560344c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_DebtInstrumentTable_8dea98ff-b41e-47aa-ba96-9043b560344c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_02aa6042-02a3-4899-b7e0-f11ed100c705" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8dea98ff-b41e-47aa-ba96-9043b560344c" xlink:to="loc_us-gaap_CreditFacilityAxis_02aa6042-02a3-4899-b7e0-f11ed100c705" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_02aa6042-02a3-4899-b7e0-f11ed100c705_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_02aa6042-02a3-4899-b7e0-f11ed100c705" xlink:to="loc_us-gaap_CreditFacilityDomain_02aa6042-02a3-4899-b7e0-f11ed100c705_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_77db1f08-c0d6-4161-afc2-3dc839368d7d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_02aa6042-02a3-4899-b7e0-f11ed100c705" xlink:to="loc_us-gaap_CreditFacilityDomain_77db1f08-c0d6-4161-afc2-3dc839368d7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_55c3b63e-e744-40d1-846b-061d9f84109b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_77db1f08-c0d6-4161-afc2-3dc839368d7d" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_55c3b63e-e744-40d1-846b-061d9f84109b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8dea98ff-b41e-47aa-ba96-9043b560344c" xlink:to="loc_us-gaap_DebtInstrumentAxis_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_d9862372-ffde-4ba1-8fd9-56024f3ad236" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_03aa3bc5-98e9-481b-9a00-42dda2d9f4f0" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_d9862372-ffde-4ba1-8fd9-56024f3ad236" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditMember_4e6c0ec7-f8d4-4bad-b5e4-a3ca6747008c" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_d9862372-ffde-4ba1-8fd9-56024f3ad236" xlink:to="loc_glad_RevolvingLineOfCreditMember_4e6c0ec7-f8d4-4bad-b5e4-a3ca6747008c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_8dea98ff-b41e-47aa-ba96-9043b560344c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_07951b12-4652-4fcf-80f3-d9561a64e21e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_f9bc9fc4-7ec6-4305-abce-1fcaee6f7e85" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_07951b12-4652-4fcf-80f3-d9561a64e21e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_2bf889ed-25fb-4121-9fe5-384bd1d16e51" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_07951b12-4652-4fcf-80f3-d9561a64e21e" xlink:to="loc_us-gaap_LineOfCreditMember_2bf889ed-25fb-4121-9fe5-384bd1d16e51" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_83d0c361-a338-4deb-ac40-0ab1e1940652" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_83d0c361-a338-4deb-ac40-0ab1e1940652" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_85d28a7c-c844-46d8-a0fd-bc417fe6aba3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_85d28a7c-c844-46d8-a0fd-bc417fe6aba3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_8110d2d9-b0e8-40e0-bccf-71077f06f8b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LineOfCreditFacilityRemainingBorrowingCapacity_8110d2d9-b0e8-40e0-bccf-71077f06f8b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtAverageAmountOutstanding_63e30086-add1-4f17-97a2-4b7b700e02f9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtAverageAmountOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LongTermDebtAverageAmountOutstanding_63e30086-add1-4f17-97a2-4b7b700e02f9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityInterestRateDuringPeriod_4419ad92-7122-4bc0-84e5-6a51362cd2af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityInterestRateDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LineOfCreditFacilityInterestRateDuringPeriod_4419ad92-7122-4bc0-84e5-6a51362cd2af" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_014f8828-3c48-472d-8810-93641e9bbeb9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityCommitmentFeeAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2ee368db-24ac-4389-bef4-1757c06d510c" xlink:to="loc_us-gaap_LineOfCreditFacilityCommitmentFeeAmount_014f8828-3c48-472d-8810-93641e9bbeb9" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/BORROWINGSFairValueNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#BORROWINGSFairValueNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/BORROWINGSFairValueNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_2b501cff-c113-4bab-b664-442cdbee12ea" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2b501cff-c113-4bab-b664-442cdbee12ea" xlink:to="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_136f1b29-b999-4ec6-9a17-47cf84abf270" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:to="loc_us-gaap_CreditFacilityAxis_136f1b29-b999-4ec6-9a17-47cf84abf270" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_136f1b29-b999-4ec6-9a17-47cf84abf270_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_136f1b29-b999-4ec6-9a17-47cf84abf270" xlink:to="loc_us-gaap_CreditFacilityDomain_136f1b29-b999-4ec6-9a17-47cf84abf270_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_78279bc0-acaa-405b-be92-ef2b5a1eb5ff" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_136f1b29-b999-4ec6-9a17-47cf84abf270" xlink:to="loc_us-gaap_CreditFacilityDomain_78279bc0-acaa-405b-be92-ef2b5a1eb5ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f09b0fbf-94ca-45f1-bcd6-135201bfc690" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_78279bc0-acaa-405b-be92-ef2b5a1eb5ff" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f09b0fbf-94ca-45f1-bcd6-135201bfc690" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_c62cb90b-e49e-4342-bca9-05e75ff886d7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_c62cb90b-e49e-4342-bca9-05e75ff886d7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_c62cb90b-e49e-4342-bca9-05e75ff886d7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c62cb90b-e49e-4342-bca9-05e75ff886d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_c62cb90b-e49e-4342-bca9-05e75ff886d7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_2fe157d3-faa9-49c3-8b0d-f85681fcc435" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_c62cb90b-e49e-4342-bca9-05e75ff886d7" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_2fe157d3-faa9-49c3-8b0d-f85681fcc435" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditMember_171d294a-cd8f-4eca-a239-bbed82bd23ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_2fe157d3-faa9-49c3-8b0d-f85681fcc435" xlink:to="loc_us-gaap_LineOfCreditMember_171d294a-cd8f-4eca-a239-bbed82bd23ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_6974746b-c159-4df6-a36f-5b984d1ccc76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:to="loc_us-gaap_DebtInstrumentAxis_6974746b-c159-4df6-a36f-5b984d1ccc76" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_6974746b-c159-4df6-a36f-5b984d1ccc76_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_6974746b-c159-4df6-a36f-5b984d1ccc76" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_6974746b-c159-4df6-a36f-5b984d1ccc76_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_871c1ed9-f32b-41e9-9838-e1b4a9010516" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_6974746b-c159-4df6-a36f-5b984d1ccc76" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_871c1ed9-f32b-41e9-9838-e1b4a9010516" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditMember_47b263d4-135f-46eb-86d3-fc13e7079ac5" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_871c1ed9-f32b-41e9-9838-e1b4a9010516" xlink:to="loc_glad_RevolvingLineOfCreditMember_47b263d4-135f-46eb-86d3-fc13e7079ac5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_2c8cbad5-6abd-4d40-980b-734facd30279" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:to="loc_us-gaap_VariableRateAxis_2c8cbad5-6abd-4d40-980b-734facd30279" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_2c8cbad5-6abd-4d40-980b-734facd30279_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_2c8cbad5-6abd-4d40-980b-734facd30279" xlink:to="loc_us-gaap_VariableRateDomain_2c8cbad5-6abd-4d40-980b-734facd30279_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_aa119ef0-3956-4298-a99f-713b3fe32058" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_2c8cbad5-6abd-4d40-980b-734facd30279" xlink:to="loc_us-gaap_VariableRateDomain_aa119ef0-3956-4298-a99f-713b3fe32058" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_8e7d8c2c-f260-4a3d-b054-0bc50fd92099" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_aa119ef0-3956-4298-a99f-713b3fe32058" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_8e7d8c2c-f260-4a3d-b054-0bc50fd92099" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_OneMonthTermSecuredOvernightFinancingRateSOFRMember_b3bd33d6-ee70-443e-bd9d-0da1b1a7cc5c" xlink:href="glad-20240630.xsd#glad_OneMonthTermSecuredOvernightFinancingRateSOFRMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_8e7d8c2c-f260-4a3d-b054-0bc50fd92099" xlink:to="loc_glad_OneMonthTermSecuredOvernightFinancingRateSOFRMember_b3bd33d6-ee70-443e-bd9d-0da1b1a7cc5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralAxis_e02b2a46-ee89-4ad2-90dd-3edab49146cb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_f0245564-1ff8-43f4-b823-51f862d5d945" xlink:to="loc_us-gaap_CollateralAxis_e02b2a46-ee89-4ad2-90dd-3edab49146cb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_e02b2a46-ee89-4ad2-90dd-3edab49146cb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CollateralAxis_e02b2a46-ee89-4ad2-90dd-3edab49146cb" xlink:to="loc_us-gaap_CollateralDomain_e02b2a46-ee89-4ad2-90dd-3edab49146cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralDomain_a8c5bedd-a6c7-4b0f-8699-2c3bcb56763d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CollateralAxis_e02b2a46-ee89-4ad2-90dd-3edab49146cb" xlink:to="loc_us-gaap_CollateralDomain_a8c5bedd-a6c7-4b0f-8699-2c3bcb56763d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CollateralPledgedMember_e362b368-f108-4122-bfd8-9c589eaf9972" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CollateralPledgedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CollateralDomain_a8c5bedd-a6c7-4b0f-8699-2c3bcb56763d" xlink:to="loc_us-gaap_CollateralPledgedMember_e362b368-f108-4122-bfd8-9c589eaf9972" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_e6e313eb-7cda-439c-9a58-702f91f09e45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2b501cff-c113-4bab-b664-442cdbee12ea" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_e6e313eb-7cda-439c-9a58-702f91f09e45" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6792e11c-c83d-4151-b16a-5a7a7703dded" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2b501cff-c113-4bab-b664-442cdbee12ea" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_6792e11c-c83d-4151-b16a-5a7a7703dded" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentOwnedAtFairValue_0e65a87d-4757-4633-b33b-14d64f00a926" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentOwnedAtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_2b501cff-c113-4bab-b664-442cdbee12ea" xlink:to="loc_us-gaap_InvestmentOwnedAtFairValue_0e65a87d-4757-4633-b33b-14d64f00a926" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/BORROWINGSFairValueLiabilitiesMeasuredonRecurringBasisUnobservableInputReconciliationDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#BORROWINGSFairValueLiabilitiesMeasuredonRecurringBasisUnobservableInputReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/BORROWINGSFairValueLiabilitiesMeasuredonRecurringBasisUnobservableInputReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_7a63c5cb-ab96-4f40-ad3b-b1a3e2cbe61f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_29d55b88-62d0-475e-8c77-07dc1400a2a8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7a63c5cb-ab96-4f40-ad3b-b1a3e2cbe61f" xlink:to="loc_us-gaap_DebtInstrumentTable_29d55b88-62d0-475e-8c77-07dc1400a2a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b6844713-120f-4d0a-9642-d30cb8b1960f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_29d55b88-62d0-475e-8c77-07dc1400a2a8" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b6844713-120f-4d0a-9642-d30cb8b1960f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b6844713-120f-4d0a-9642-d30cb8b1960f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b6844713-120f-4d0a-9642-d30cb8b1960f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_b6844713-120f-4d0a-9642-d30cb8b1960f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_961e3c1f-6202-45b8-a624-ee91ba767623" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_b6844713-120f-4d0a-9642-d30cb8b1960f" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_961e3c1f-6202-45b8-a624-ee91ba767623" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_8102c85d-abea-490d-8e38-d05e514b5b2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_961e3c1f-6202-45b8-a624-ee91ba767623" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_8102c85d-abea-490d-8e38-d05e514b5b2f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_29d55b88-62d0-475e-8c77-07dc1400a2a8" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_869c27fa-3767-4e23-bead-edec6f88e9df" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_0f8c14cc-0ebe-4842-8b5f-c89dcdbb10cd" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_869c27fa-3767-4e23-bead-edec6f88e9df" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_7b296367-01d5-414b-ad77-a61cfc1f4a6b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_869c27fa-3767-4e23-bead-edec6f88e9df" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_7b296367-01d5-414b-ad77-a61cfc1f4a6b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByLiabilityClassAxis_e113f360-9c62-4c68-b24e-01c81ba6307c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueByLiabilityClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_29d55b88-62d0-475e-8c77-07dc1400a2a8" xlink:to="loc_us-gaap_FairValueByLiabilityClassAxis_e113f360-9c62-4c68-b24e-01c81ba6307c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_e113f360-9c62-4c68-b24e-01c81ba6307c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_e113f360-9c62-4c68-b24e-01c81ba6307c" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_e113f360-9c62-4c68-b24e-01c81ba6307c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9f55e37b-f3fd-42c6-b7e1-029f276da10c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByLiabilityClassAxis_e113f360-9c62-4c68-b24e-01c81ba6307c" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9f55e37b-f3fd-42c6-b7e1-029f276da10c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMember_c84aaf4e-4c57-4560-8a9a-4767fb6625cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongTermDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain_9f55e37b-f3fd-42c6-b7e1-029f276da10c" xlink:to="loc_us-gaap_LongTermDebtMember_c84aaf4e-4c57-4560-8a9a-4767fb6625cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LinesOfCreditFairValueDisclosure_14ae4c1b-320a-4efc-bed7-66f23a769e16" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LinesOfCreditFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7a63c5cb-ab96-4f40-ad3b-b1a3e2cbe61f" xlink:to="loc_us-gaap_LinesOfCreditFairValueDisclosure_14ae4c1b-320a-4efc-bed7-66f23a769e16" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_7a63c5cb-ab96-4f40-ad3b-b1a3e2cbe61f" xlink:to="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_78839c85-5561-4f64-89ad-2c5277d81b7e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_78839c85-5561-4f64-89ad-2c5277d81b7e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_56fdd106-8998-430f-88c3-73df5a49f550" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityPurchases_56fdd106-8998-430f-88c3-73df5a49f550" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySales_b1e9bf6d-3c87-441b-a1c9-9ad36efb0299" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySales"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:to="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilitySales_b1e9bf6d-3c87-441b-a1c9-9ad36efb0299" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityUnrealizedAppreciationDepreciation_4d10f886-dab6-41f3-971e-2cece54d35e0" xlink:href="glad-20240630.xsd#glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityUnrealizedAppreciationDepreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward_e1a720c4-1428-46d3-8b6b-30e8ee61ad9a" xlink:to="loc_glad_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisLiabilityUnrealizedAppreciationDepreciation_4d10f886-dab6-41f3-971e-2cece54d35e0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue_2c76c777-00a0-4f3b-8568-d92ceb85d9ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationsRecurringBasisLiabilityValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/BORROWINGSNotesPayableNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#BORROWINGSNotesPayableNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/BORROWINGSNotesPayableNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_53121e77-645a-452a-9ee1-2e0e5b146b6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_DebtInstrumentTable_53121e77-645a-452a-9ee1-2e0e5b146b6a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_c97f8b21-7c71-4d07-9097-9e050ed69a1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53121e77-645a-452a-9ee1-2e0e5b146b6a" xlink:to="loc_us-gaap_DebtInstrumentAxis_c97f8b21-7c71-4d07-9097-9e050ed69a1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c97f8b21-7c71-4d07-9097-9e050ed69a1c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_c97f8b21-7c71-4d07-9097-9e050ed69a1c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c97f8b21-7c71-4d07-9097-9e050ed69a1c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_348c1638-cb92-41c2-8113-f5da1bb81155" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_c97f8b21-7c71-4d07-9097-9e050ed69a1c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_348c1638-cb92-41c2-8113-f5da1bb81155" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A775NotesDue2028Member_cfba03f6-7d8f-492a-81cb-43d3415a8189" xlink:href="glad-20240630.xsd#glad_A775NotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_348c1638-cb92-41c2-8113-f5da1bb81155" xlink:to="loc_glad_A775NotesDue2028Member_cfba03f6-7d8f-492a-81cb-43d3415a8189" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A3.75NotesDue2027Member_decf9316-7eb7-4fc6-bc05-a4ee221b8bf1" xlink:href="glad-20240630.xsd#glad_A3.75NotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_348c1638-cb92-41c2-8113-f5da1bb81155" xlink:to="loc_glad_A3.75NotesDue2027Member_decf9316-7eb7-4fc6-bc05-a4ee221b8bf1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A5.125NotesDue2026Member_db147d25-5099-4366-912c-a88b17b50596" xlink:href="glad-20240630.xsd#glad_A5.125NotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_348c1638-cb92-41c2-8113-f5da1bb81155" xlink:to="loc_glad_A5.125NotesDue2026Member_db147d25-5099-4366-912c-a88b17b50596" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_7fb70790-5763-4a64-8f02-fd4182791f3e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_53121e77-645a-452a-9ee1-2e0e5b146b6a" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_7fb70790-5763-4a64-8f02-fd4182791f3e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_7fb70790-5763-4a64-8f02-fd4182791f3e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7fb70790-5763-4a64-8f02-fd4182791f3e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_7fb70790-5763-4a64-8f02-fd4182791f3e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_175ab68f-caf4-4753-ab9d-9582647f3db9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_7fb70790-5763-4a64-8f02-fd4182791f3e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_175ab68f-caf4-4753-ab9d-9582647f3db9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableOtherPayablesMember_5d6bad80-30be-4e55-87cd-a02117ebe031" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayableOtherPayablesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_175ab68f-caf4-4753-ab9d-9582647f3db9" xlink:to="loc_us-gaap_NotesPayableOtherPayablesMember_5d6bad80-30be-4e55-87cd-a02117ebe031" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_d218e021-c66b-40c3-bb10-f3e08a2c5f63" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_d218e021-c66b-40c3-bb10-f3e08a2c5f63" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f37b1c0a-937d-452d-9efc-1f8d0fc73826" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f37b1c0a-937d-452d-9efc-1f8d0fc73826" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_989cfe2d-9fa9-4b65-9821-a69d50d34fd7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_989cfe2d-9fa9-4b65-9821-a69d50d34fd7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_44d47263-7258-4e55-a6c9-554cae27e3bc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_44d47263-7258-4e55-a6c9-554cae27e3bc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_143b22ee-4ecf-4aee-97a8-e8ad47522b45" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_e7374dd3-5eff-443a-9a90-f2125859f025" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_143b22ee-4ecf-4aee-97a8-e8ad47522b45" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/CUMULATIVEREDEEMABLEPREFERREDSTOCKOFFERINGDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#CUMULATIVEREDEEMABLEPREFERREDSTOCKOFFERINGDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/CUMULATIVEREDEEMABLEPREFERREDSTOCKOFFERINGDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_af209782-1e6a-4064-a818-c0d1c6c49cce" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ScheduleOfStockByClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_af209782-1e6a-4064-a818-c0d1c6c49cce" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_af209782-1e6a-4064-a818-c0d1c6c49cce" xlink:to="loc_us-gaap_StatementClassOfStockAxis_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54" xlink:to="loc_us-gaap_ClassOfStockDomain_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_22598e0a-d672-47d8-b883-ff1625b60fe4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_0cbee7fd-1864-4dfc-80ac-f7abb0cf7e54" xlink:to="loc_us-gaap_ClassOfStockDomain_22598e0a-d672-47d8-b883-ff1625b60fe4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_de9c5d0f-f9d8-408d-9e2c-a23ceb7189f3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_22598e0a-d672-47d8-b883-ff1625b60fe4" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_de9c5d0f-f9d8-408d-9e2c-a23ceb7189f3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_a773257d-dd44-4d8b-8208-b1a79dd373fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_af209782-1e6a-4064-a818-c0d1c6c49cce" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_a773257d-dd44-4d8b-8208-b1a79dd373fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_a773257d-dd44-4d8b-8208-b1a79dd373fd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_a773257d-dd44-4d8b-8208-b1a79dd373fd" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_a773257d-dd44-4d8b-8208-b1a79dd373fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_69220738-35e7-481c-9db9-d578e016c84d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_a773257d-dd44-4d8b-8208-b1a79dd373fd" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_69220738-35e7-481c-9db9-d578e016c84d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_DealerManagerAgreementMember_125e065d-b795-47e8-84f5-f5d8e96bd100" xlink:href="glad-20240630.xsd#glad_DealerManagerAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_69220738-35e7-481c-9db9-d578e016c84d" xlink:to="loc_glad_DealerManagerAgreementMember_125e065d-b795-47e8-84f5-f5d8e96bd100" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesAuthorized_ac263519-788e-4eba-bbb9-9ffb15cde562" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_TemporaryEquitySharesAuthorized_ac263519-788e-4eba-bbb9-9ffb15cde562" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TemporaryEquityDividendRatePercentage_8db976f2-30d1-4346-af7e-e988f613c21f" xlink:href="glad-20240630.xsd#glad_TemporaryEquityDividendRatePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_glad_TemporaryEquityDividendRatePercentage_8db976f2-30d1-4346-af7e-e988f613c21f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_89d55b41-74bc-4db1-a3d0-2b5671e15c43" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquityParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_TemporaryEquityParOrStatedValuePerShare_89d55b41-74bc-4db1-a3d0-2b5671e15c43" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockPricePerShare_6c68d5b4-93f4-4764-9c87-c38d64657680" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockPricePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_SaleOfStockPricePerShare_6c68d5b4-93f4-4764-9c87-c38d64657680" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockRemainingAuthorizedIssuanceAmount_bbd99c4f-88c7-4eb6-914b-077ac62f1c6d" xlink:href="glad-20240630.xsd#glad_SaleOfStockRemainingAuthorizedIssuanceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_glad_SaleOfStockRemainingAuthorizedIssuanceAmount_bbd99c4f-88c7-4eb6-914b-077ac62f1c6d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_de257d94-c192-4faf-be0e-4b5aac12d905" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_de257d94-c192-4faf-be0e-4b5aac12d905" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockGrossProceedsFromTransaction_1fda55d4-8cd5-42c0-8211-6413398bebc9" xlink:href="glad-20240630.xsd#glad_SaleOfStockGrossProceedsFromTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_glad_SaleOfStockGrossProceedsFromTransaction_1fda55d4-8cd5-42c0-8211-6413398bebc9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_37f23a26-0ad9-4617-8071-eaa845bb85dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_37f23a26-0ad9-4617-8071-eaa845bb85dd" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TemporaryEquitySharesOutstanding_410875a5-7b1f-452b-b4e7-c54a87d5fc85" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_TemporaryEquitySharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_TemporaryEquitySharesOutstanding_410875a5-7b1f-452b-b4e7-c54a87d5fc85" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DividendsPreferredStock_82d840dd-d86e-4f28-8530-0cabcaf7bbef" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DividendsPreferredStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_us-gaap_DividendsPreferredStock_82d840dd-d86e-4f28-8530-0cabcaf7bbef" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SeniorSecuritiesAssetCoverageRatio_8ffb2ec9-4dbe-4938-b9d5-ef44489c9caf" xlink:href="glad-20240630.xsd#glad_SeniorSecuritiesAssetCoverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_da2f96f2-6e74-4c7e-a8d4-806d104c6c2f" xlink:to="loc_glad_SeniorSecuritiesAssetCoverageRatio_8ffb2ec9-4dbe-4938-b9d5-ef44489c9caf" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/REGISTRATIONSTATEMENTANDCOMMONEQUITYOFFERINGSDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#REGISTRATIONSTATEMENTANDCOMMONEQUITYOFFERINGSDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/REGISTRATIONSTATEMENTANDCOMMONEQUITYOFFERINGSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GovernmentAssistanceLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GovernmentAssistanceTable_4be92086-e2de-4deb-8b6c-7e80bc37b81a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GovernmentAssistanceTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_us-gaap_GovernmentAssistanceTable_4be92086-e2de-4deb-8b6c-7e80bc37b81a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_3f610647-cd37-416c-8001-7db5d068a787" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_GovernmentAssistanceTable_4be92086-e2de-4deb-8b6c-7e80bc37b81a" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_3f610647-cd37-416c-8001-7db5d068a787" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_3f610647-cd37-416c-8001-7db5d068a787_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_3f610647-cd37-416c-8001-7db5d068a787" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_3f610647-cd37-416c-8001-7db5d068a787_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_baaf7e92-8459-4030-a625-1b9ee3be4516" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_3f610647-cd37-416c-8001-7db5d068a787" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_baaf7e92-8459-4030-a625-1b9ee3be4516" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_CommonStockAtTheMarketOfferingsMember_2b46ebaa-a599-4558-8d44-d8663e91f41d" xlink:href="glad-20240630.xsd#glad_CommonStockAtTheMarketOfferingsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_baaf7e92-8459-4030-a625-1b9ee3be4516" xlink:to="loc_glad_CommonStockAtTheMarketOfferingsMember_2b46ebaa-a599-4558-8d44-d8663e91f41d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_194e55b0-7cfc-443b-9963-dfec742aa5d0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquityNoteStockSplitConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_us-gaap_StockholdersEquityNoteStockSplitConversionRatio1_194e55b0-7cfc-443b-9963-dfec742aa5d0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockAggregateOfferingPriceAuthorized_25dc3c19-8032-407a-a277-24b62bd08250" xlink:href="glad-20240630.xsd#glad_SaleOfStockAggregateOfferingPriceAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_glad_SaleOfStockAggregateOfferingPriceAuthorized_25dc3c19-8032-407a-a277-24b62bd08250" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockRemainingCapacityOfOfferingPriceAuthorized_8259dedd-2a7f-428b-aaa6-f37eed1f468e" xlink:href="glad-20240630.xsd#glad_SaleOfStockRemainingCapacityOfOfferingPriceAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_glad_SaleOfStockRemainingCapacityOfOfferingPriceAuthorized_8259dedd-2a7f-428b-aaa6-f37eed1f468e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockAggregateValueOfSecuritiesAuthorized_b587d0ff-1738-4fc0-8fc2-20ddb38ea2a3" xlink:href="glad-20240630.xsd#glad_SaleOfStockAggregateValueOfSecuritiesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_glad_SaleOfStockAggregateValueOfSecuritiesAuthorized_b587d0ff-1738-4fc0-8fc2-20ddb38ea2a3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SaleOfStockRemainingCapacityOfAggregateValueOfSecuritiesAuthorized_cc43345f-8278-4f30-8816-521516f39b02" xlink:href="glad-20240630.xsd#glad_SaleOfStockRemainingCapacityOfAggregateValueOfSecuritiesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GovernmentAssistanceLineItems_330325a5-1abc-4c0f-a801-2c13d4cb3b9a" xlink:to="loc_glad_SaleOfStockRemainingCapacityOfAggregateValueOfSecuritiesAuthorized_cc43345f-8278-4f30-8816-521516f39b02" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/COMMITMENTSANDCONTINGENCIESScheduleofPrincipalBalancesofUnusedLineofCreditandDelayedDrawTermDebtCommitmentsandGuarantiesDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#COMMITMENTSANDCONTINGENCIESScheduleofPrincipalBalancesofUnusedLineofCreditandDelayedDrawTermDebtCommitmentsandGuarantiesDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/COMMITMENTSANDCONTINGENCIESScheduleofPrincipalBalancesofUnusedLineofCreditandDelayedDrawTermDebtCommitmentsandGuarantiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsLineItems_877b273f-d265-48c5-a969-63715038d9cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherCommitmentsTable_434dc6f5-644d-4a18-b3e9-5a8e3a767303" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherCommitmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_877b273f-d265-48c5-a969-63715038d9cf" xlink:to="loc_us-gaap_OtherCommitmentsTable_434dc6f5-644d-4a18-b3e9-5a8e3a767303" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis_eb80b87e-5073-4829-b06a-037c89e100c2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_OtherCommitmentsTable_434dc6f5-644d-4a18-b3e9-5a8e3a767303" xlink:to="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis_eb80b87e-5073-4829-b06a-037c89e100c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_eb80b87e-5073-4829-b06a-037c89e100c2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis_eb80b87e-5073-4829-b06a-037c89e100c2" xlink:to="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_eb80b87e-5073-4829-b06a-037c89e100c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_e21b8cbe-5632-4244-9728-ecc01c78c691" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityAxis_eb80b87e-5073-4829-b06a-037c89e100c2" xlink:to="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_e21b8cbe-5632-4244-9728-ecc01c78c691" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnusedLinesOfCreditMember_18af3d92-a12b-4e54-aef3-315296fc6144" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_UnusedLinesOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_e21b8cbe-5632-4244-9728-ecc01c78c691" xlink:to="loc_us-gaap_UnusedLinesOfCreditMember_18af3d92-a12b-4e54-aef3-315296fc6144" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DelayedDrawTermLoanMember_0ac3a516-e792-4e98-9a6d-e9ad7eae95e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DelayedDrawTermLoanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_e21b8cbe-5632-4244-9728-ecc01c78c691" xlink:to="loc_us-gaap_DelayedDrawTermLoanMember_0ac3a516-e792-4e98-9a6d-e9ad7eae95e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialSupportCapitalContributionsMember_0a46aa07-d95f-4756-aab0-f7757d55bf1d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FinancialSupportCapitalContributionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FinancialSupportToNonconsolidatedLegalEntityDomain_e21b8cbe-5632-4244-9728-ecc01c78c691" xlink:to="loc_us-gaap_FinancialSupportCapitalContributionsMember_0a46aa07-d95f-4756-aab0-f7757d55bf1d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount_47fb7612-24d0-4938-bcf3-70dbd573626d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherCommitmentsLineItems_877b273f-d265-48c5-a969-63715038d9cf" xlink:to="loc_us-gaap_InvestmentCompanyFinancialCommitmentToInvesteeFutureAmount_47fb7612-24d0-4938-bcf3-70dbd573626d" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/FINANCIALHIGHLIGHTSDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#FINANCIALHIGHLIGHTSDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/FINANCIALHIGHLIGHTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialHighlightsLineItems_93b8f6b0-3d08-4464-b79e-4b8d321447af" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialHighlightsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialHighlightsTable_1ca5323c-f0b9-48a3-8a1c-230d02687388" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialHighlightsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsLineItems_93b8f6b0-3d08-4464-b79e-4b8d321447af" xlink:to="loc_us-gaap_InvestmentCompanyFinancialHighlightsTable_1ca5323c-f0b9-48a3-8a1c-230d02687388" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_edbed1c9-9470-46fc-bc5e-75144ff86bbb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsTable_1ca5323c-f0b9-48a3-8a1c-230d02687388" xlink:to="loc_us-gaap_StatementClassOfStockAxis_edbed1c9-9470-46fc-bc5e-75144ff86bbb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_edbed1c9-9470-46fc-bc5e-75144ff86bbb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_edbed1c9-9470-46fc-bc5e-75144ff86bbb" xlink:to="loc_us-gaap_ClassOfStockDomain_edbed1c9-9470-46fc-bc5e-75144ff86bbb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_df7d87dc-547c-4be4-8783-3d2616de57cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_edbed1c9-9470-46fc-bc5e-75144ff86bbb" xlink:to="loc_us-gaap_ClassOfStockDomain_df7d87dc-547c-4be4-8783-3d2616de57cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember_6e52f56e-4161-4f02-aa66-cd0e3ce1d53c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_df7d87dc-547c-4be4-8783-3d2616de57cf" xlink:to="loc_us-gaap_SeriesAPreferredStockMember_6e52f56e-4161-4f02-aa66-cd0e3ce1d53c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyPerShareDataAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsLineItems_93b8f6b0-3d08-4464-b79e-4b8d321447af" xlink:to="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialHighlightsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetAssetValuePerShare_7773391d-bc34-432b-ae2b-b55b569fad39" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetAssetValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_us-gaap_NetAssetValuePerShare_7773391d-bc34-432b-ae2b-b55b569fad39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract_f8589916-1e5e-4f6c-a949-67f6d8cd0445" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract_f8589916-1e5e-4f6c-a949-67f6d8cd0445" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_f8a032d9-4a5e-4f6d-8185-b3294520d796" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract_f8589916-1e5e-4f6c-a949-67f6d8cd0445" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossPerShare_f8a032d9-4a5e-4f6d-8185-b3294520d796" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyGainLossOnInvestmentPerShare_f763493f-4da9-477e-b4d7-06401605fa7b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyGainLossOnInvestmentPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract_f8589916-1e5e-4f6c-a949-67f6d8cd0445" xlink:to="loc_us-gaap_InvestmentCompanyGainLossOnInvestmentPerShare_f763493f-4da9-477e-b4d7-06401605fa7b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyGainLossOnOtherPerShare_15665783-913f-4f0b-9796-643e8d189105" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyGainLossOnOtherPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShareAbstract_f8589916-1e5e-4f6c-a949-67f6d8cd0445" xlink:to="loc_glad_InvestmentCompanyGainLossOnOtherPerShare_15665783-913f-4f0b-9796-643e8d189105" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_3da22c9e-4fc5-48be-a5f9-15b1fc7f90c3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossFromOperationsPerShare_3da22c9e-4fc5-48be-a5f9-15b1fc7f90c3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_EffectOfEquityCapitalActivityAbstract_f714cd6f-91ee-4c91-913a-d3d290e38987" xlink:href="glad-20240630.xsd#glad_EffectOfEquityCapitalActivityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_glad_EffectOfEquityCapitalActivityAbstract_f714cd6f-91ee-4c91-913a-d3d290e38987" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyDistributionToShareholdersFromNetInvestmentIncomePerShare_560a008f-ca85-484d-945c-41931eb9b8c0" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyDistributionToShareholdersFromNetInvestmentIncomePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_EffectOfEquityCapitalActivityAbstract_f714cd6f-91ee-4c91-913a-d3d290e38987" xlink:to="loc_glad_InvestmentCompanyDistributionToShareholdersFromNetInvestmentIncomePerShare_560a008f-ca85-484d-945c-41931eb9b8c0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyDistributionToShareholdersFromRealizedGainsPerShare_73d4a647-4a7b-4511-9887-709c886d48e1" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyDistributionToShareholdersFromRealizedGainsPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_EffectOfEquityCapitalActivityAbstract_f714cd6f-91ee-4c91-913a-d3d290e38987" xlink:to="loc_glad_InvestmentCompanyDistributionToShareholdersFromRealizedGainsPerShare_73d4a647-4a7b-4511-9887-709c886d48e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_23fb825d-93a0-4943-bcb4-065df994d2c5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyDistributionToShareholdersPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_EffectOfEquityCapitalActivityAbstract_f714cd6f-91ee-4c91-913a-d3d290e38987" xlink:to="loc_us-gaap_InvestmentCompanyDistributionToShareholdersPerShare_23fb825d-93a0-4943-bcb4-065df994d2c5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfNetIncomePerOutstandingUnitAmount_e47d9836-1812-40ba-89bc-6ec22deed6ab" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfNetIncomePerOutstandingUnitAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfNetIncomePerOutstandingUnitAmount_e47d9836-1812-40ba-89bc-6ec22deed6ab" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyCapitalShareTransactionsPerShare_b3a47802-d551-4cc3-bbad-1e0592975868" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyCapitalShareTransactionsPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_glad_InvestmentCompanyCapitalShareTransactionsPerShare_b3a47802-d551-4cc3-bbad-1e0592975868" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_InvestmentCompanyNetAssetValuePerShareOtherIncreaseDecreaseNet_d0b44ad0-6d53-4542-9ff4-fa7b765af3d2" xlink:href="glad-20240630.xsd#glad_InvestmentCompanyNetAssetValuePerShareOtherIncreaseDecreaseNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialHighlightsRollForward_a4fcbc92-2476-46fb-b513-6eeac2ccd9ac" xlink:to="loc_glad_InvestmentCompanyNetAssetValuePerShareOtherIncreaseDecreaseNet_d0b44ad0-6d53-4542-9ff4-fa7b765af3d2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetAssetValuePerShare_450933e6-f9c5-4f24-88bb-fd444879e264" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetAssetValuePerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyMarketValuePerShare_e98cf1af-1d27-4278-a73f-726231c8748d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyMarketValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyMarketValuePerShare_e98cf1af-1d27-4278-a73f-726231c8748d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyMarketValuePerShare_41043eda-7210-4971-8bc2-8694c33ea54f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyMarketValuePerShare"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyTotalReturnMarketValue_baf7cba7-ee2a-4743-bcd5-1d9b01ff563f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyTotalReturnMarketValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyTotalReturnMarketValue_baf7cba7-ee2a-4743-bcd5-1d9b01ff563f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_41c85c2f-a0a0-4f9f-931b-046e12e97cdf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_41c85c2f-a0a0-4f9f-931b-046e12e97cdf" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_StatementOfAssetsAndLiabilitiesDataAbstract_bf383475-ade2-4f46-a45b-5669552a6e33" xlink:href="glad-20240630.xsd#glad_StatementOfAssetsAndLiabilitiesDataAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_glad_StatementOfAssetsAndLiabilitiesDataAbstract_bf383475-ade2-4f46-a45b-5669552a6e33" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsNet_895917bd-6722-4547-8def-d52ec8ab3381" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_StatementOfAssetsAndLiabilitiesDataAbstract_bf383475-ade2-4f46-a45b-5669552a6e33" xlink:to="loc_us-gaap_AssetsNet_895917bd-6722-4547-8def-d52ec8ab3381" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyAverageNetAssets_1ec96cf9-566f-4a98-b983-9492d0d7bbd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyAverageNetAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_StatementOfAssetsAndLiabilitiesDataAbstract_bf383475-ade2-4f46-a45b-5669552a6e33" xlink:to="loc_us-gaap_InvestmentCompanyAverageNetAssets_1ec96cf9-566f-4a98-b983-9492d0d7bbd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_SeniorSecuritiesDataAbstract_4d8c3896-5cbc-4b00-a9f3-7f2ccd1ab9d8" xlink:href="glad-20240630.xsd#glad_SeniorSecuritiesDataAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_glad_SeniorSecuritiesDataAbstract_4d8c3896-5cbc-4b00-a9f3-7f2ccd1ab9d8" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_3dcbe35c-b045-4687-b32c-b0617af19fcc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_SeniorSecuritiesDataAbstract_4d8c3896-5cbc-4b00-a9f3-7f2ccd1ab9d8" xlink:to="loc_us-gaap_LineOfCredit_3dcbe35c-b045-4687-b32c-b0617af19fcc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_06697bc2-cf0b-44c7-a831-6775e6c976f5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_SeniorSecuritiesDataAbstract_4d8c3896-5cbc-4b00-a9f3-7f2ccd1ab9d8" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_06697bc2-cf0b-44c7-a831-6775e6c976f5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValueOutstanding_5b815920-6ffb-45cc-b340-06e0216d8660" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockValueOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_SeniorSecuritiesDataAbstract_4d8c3896-5cbc-4b00-a9f3-7f2ccd1ab9d8" xlink:to="loc_us-gaap_PreferredStockValueOutstanding_5b815920-6ffb-45cc-b340-06e0216d8660" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyFinancialRatiosAbstract_5b3924aa-7ea9-482e-8c1a-774e706cea20" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyFinancialRatiosAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyFinancialRatiosAbstract_5b3924aa-7ea9-482e-8c1a-774e706cea20" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseRatioAfterIncentiveAllocation_c98c6d3c-bc69-4abf-9e50-504e18189be3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyExpenseRatioAfterIncentiveAllocation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialRatiosAbstract_5b3924aa-7ea9-482e-8c1a-774e706cea20" xlink:to="loc_us-gaap_InvestmentCompanyExpenseRatioAfterIncentiveAllocation_c98c6d3c-bc69-4abf-9e50-504e18189be3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioAfterIncentiveAllocation_683af9d3-4432-455f-9f5f-47c65c8102d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossRatioAfterIncentiveAllocation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_InvestmentCompanyFinancialRatiosAbstract_5b3924aa-7ea9-482e-8c1a-774e706cea20" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioAfterIncentiveAllocation_683af9d3-4432-455f-9f5f-47c65c8102d4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyExpenseRatioBeforeIncentiveAllocation_f3c83e9b-afcf-429a-8ef3-5291fd53a865" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyExpenseRatioBeforeIncentiveAllocation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyExpenseRatioBeforeIncentiveAllocation_f3c83e9b-afcf-429a-8ef3-5291fd53a865" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation_eb0fa048-88e2-4347-9661-a5a537e08a95" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_glad_InvestmentCompanyPerShareDataAbstract_bae2e85a-3277-4312-a5bb-9b667f035c7c" xlink:to="loc_us-gaap_InvestmentCompanyInvestmentIncomeLossRatioBeforeIncentiveAllocation_eb0fa048-88e2-4347-9661-a5a537e08a95" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/SUBSEQUENTEVENTSNarrativeDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#SUBSEQUENTEVENTSNarrativeDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/SUBSEQUENTEVENTSNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_768af444-325c-4f5a-ab2b-78c852a81651" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_0cf65e9a-2516-4e11-b197-86e88f2db0d8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_768af444-325c-4f5a-ab2b-78c852a81651" xlink:to="loc_us-gaap_SubsequentEventTable_0cf65e9a-2516-4e11-b197-86e88f2db0d8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_10daedb1-272d-4017-8881-907af3c46c46" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_0cf65e9a-2516-4e11-b197-86e88f2db0d8" xlink:to="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_10daedb1-272d-4017-8881-907af3c46c46" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_10daedb1-272d-4017-8881-907af3c46c46_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_10daedb1-272d-4017-8881-907af3c46c46" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_10daedb1-272d-4017-8881-907af3c46c46_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_EquityMethodInvesteeNameDomain_ed215d29-579f-4e03-8ace-4ec7fa9a25bf" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_EquityMethodInvesteeNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis_10daedb1-272d-4017-8881-907af3c46c46" xlink:to="loc_srt_EquityMethodInvesteeNameDomain_ed215d29-579f-4e03-8ace-4ec7fa9a25bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TailwindSmithCooperImmediateCorporationMember_20f15619-d4e3-4b20-be91-bf5dc7291578" xlink:href="glad-20240630.xsd#glad_TailwindSmithCooperImmediateCorporationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_ed215d29-579f-4e03-8ace-4ec7fa9a25bf" xlink:to="loc_glad_TailwindSmithCooperImmediateCorporationMember_20f15619-d4e3-4b20-be91-bf5dc7291578" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_TurnKeyHealthClinicsLLCMember_6af7f615-c4bf-464a-a9b6-84afcfd7e58e" xlink:href="glad-20240630.xsd#glad_TurnKeyHealthClinicsLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_EquityMethodInvesteeNameDomain_ed215d29-579f-4e03-8ace-4ec7fa9a25bf" xlink:to="loc_glad_TurnKeyHealthClinicsLLCMember_6af7f615-c4bf-464a-a9b6-84afcfd7e58e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_3f5f4163-4a59-434c-b8c4-03db1dca718f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_0cf65e9a-2516-4e11-b197-86e88f2db0d8" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_3f5f4163-4a59-434c-b8c4-03db1dca718f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_3f5f4163-4a59-434c-b8c4-03db1dca718f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_3f5f4163-4a59-434c-b8c4-03db1dca718f" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_3f5f4163-4a59-434c-b8c4-03db1dca718f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_32994077-444e-4ede-b44d-a7b119f1186b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_3f5f4163-4a59-434c-b8c4-03db1dca718f" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_32994077-444e-4ede-b44d-a7b119f1186b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_32cfb48e-3d66-4e56-8490-359161859cb7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_32994077-444e-4ede-b44d-a7b119f1186b" xlink:to="loc_us-gaap_SubsequentEventMember_32cfb48e-3d66-4e56-8490-359161859cb7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_45cb2b3b-2e68-4896-a77f-f1a4ab0c629f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_768af444-325c-4f5a-ab2b-78c852a81651" xlink:to="loc_us-gaap_ProceedsFromDispositionOfInvestmentOperatingActivity_45cb2b3b-2e68-4896-a77f-f1a4ab0c629f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_7e2b0554-b99c-48da-8ca2-31c1e1e46352" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_768af444-325c-4f5a-ab2b-78c852a81651" xlink:to="loc_us-gaap_PaymentsForPurchaseOfInvestmentOperatingActivity_7e2b0554-b99c-48da-8ca2-31c1e1e46352" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentCompanyCommittedCapital_41483e6b-a874-44bc-a7d2-c0ea106e4aa6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentCompanyCommittedCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_768af444-325c-4f5a-ab2b-78c852a81651" xlink:to="loc_us-gaap_InvestmentCompanyCommittedCapital_41483e6b-a874-44bc-a7d2-c0ea106e4aa6" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.glad.com/role/SUBSEQUENTEVENTSScheduleofSubsequentEventsDetails" xlink:type="simple" xlink:href="glad-20240630.xsd#SUBSEQUENTEVENTSScheduleofSubsequentEventsDetails"/>
  <link:definitionLink xlink:role="http://www.glad.com/role/SUBSEQUENTEVENTSScheduleofSubsequentEventsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventLineItems_b25b06e7-df9a-41c8-930f-779394634207" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTable_9d92b2e9-62d9-4e47-8f90-45784fa2ba93" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsequentEventLineItems_b25b06e7-df9a-41c8-930f-779394634207" xlink:to="loc_us-gaap_SubsequentEventTable_9d92b2e9-62d9-4e47-8f90-45784fa2ba93" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeAxis_8dd9f8e4-3999-4044-b941-bd65756ba103" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_9d92b2e9-62d9-4e47-8f90-45784fa2ba93" xlink:to="loc_us-gaap_SubsequentEventTypeAxis_8dd9f8e4-3999-4044-b941-bd65756ba103" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_8dd9f8e4-3999-4044-b941-bd65756ba103_default" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8dd9f8e4-3999-4044-b941-bd65756ba103" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_8dd9f8e4-3999-4044-b941-bd65756ba103_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventTypeDomain_865e0db9-fdc6-4a71-9244-39583f2acc1a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsequentEventTypeAxis_8dd9f8e4-3999-4044-b941-bd65756ba103" xlink:to="loc_us-gaap_SubsequentEventTypeDomain_865e0db9-fdc6-4a71-9244-39583f2acc1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsequentEventMember_e933c126-d738-4ec4-9650-9ec7f5c7d775" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SubsequentEventMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventTypeDomain_865e0db9-fdc6-4a71-9244-39583f2acc1a" xlink:to="loc_us-gaap_SubsequentEventMember_e933c126-d738-4ec4-9650-9ec7f5c7d775" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementScenarioAxis_0a1e9228-8677-470b-9b69-2709d4ec06bf" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_StatementScenarioAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsequentEventTable_9d92b2e9-62d9-4e47-8f90-45784fa2ba93" xlink:to="loc_srt_StatementScenarioAxis_0a1e9228-8677-470b-9b69-2709d4ec06bf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_0a1e9228-8677-470b-9b69-2709d4ec06bf_default" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementScenarioAxis_0a1e9228-8677-470b-9b69-2709d4ec06bf" xlink:to="loc_srt_ScenarioUnspecifiedDomain_0a1e9228-8677-470b-9b69-2709d4ec06bf_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioUnspecifiedDomain_a8ee5f5e-4a35-4556-bd0b-8eb190a89d34" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioUnspecifiedDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementScenarioAxis_0a1e9228-8677-470b-9b69-2709d4ec06bf" xlink:to="loc_srt_ScenarioUnspecifiedDomain_a8ee5f5e-4a35-4556-bd0b-8eb190a89d34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ScenarioForecastMember_a2fca8b5-ba17-4da8-b373-663e6f4e87c7" xlink:href="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd#srt_ScenarioForecastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ScenarioUnspecifiedDomain_a8ee5f5e-4a35-4556-bd0b-8eb190a89d34" xlink:to="loc_srt_ScenarioForecastMember_a2fca8b5-ba17-4da8-b373-663e6f4e87c7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockDividendsPerShareCashPaid_2a4a3a57-a55d-4183-a105-de706aecb879" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_b25b06e7-df9a-41c8-930f-779394634207" xlink:to="loc_us-gaap_CommonStockDividendsPerShareCashPaid_2a4a3a57-a55d-4183-a105-de706aecb879" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockDividendsPerShareCashPaid_dbc7a315-f035-4fb1-b6d3-c8fe40978d8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PreferredStockDividendsPerShareCashPaid"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsequentEventLineItems_b25b06e7-df9a-41c8-930f-779394634207" xlink:to="loc_us-gaap_PreferredStockDividendsPerShareCashPaid_dbc7a315-f035-4fb1-b6d3-c8fe40978d8d" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/cef/role/SecurityOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/cef/2024/cef-2024.xsd#SecurityOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/cef/role/SecurityOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ClassOfStockDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain" xlink:to="loc_us-gaap_CommonStockMember" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A7.75NotesDue202802Member_66fe946c-4111-4ae1-8dc7-5581082cfdd7" xlink:href="glad-20240630.xsd#glad_A7.75NotesDue202802Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain" xlink:to="loc_glad_A7.75NotesDue202802Member_66fe946c-4111-4ae1-8dc7-5581082cfdd7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeriesAPreferredStockMember" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeriesAPreferredStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain" xlink:to="loc_us-gaap_SeriesAPreferredStockMember" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditMember_95218e5b-6255-431e-9d07-c2a5e341d9bc" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_RevolvingLineOfCreditMember_95218e5b-6255-431e-9d07-c2a5e341d9bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo5Member_7059d7b6-c7b5-4d7e-9717-27335802bec1" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo5Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo5Member_7059d7b6-c7b5-4d7e-9717-27335802bec1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo.6Member_6e6fa0cc-9b80-4bec-9a8b-a67f08758bc0" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo.6Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo.6Member_6e6fa0cc-9b80-4bec-9a8b-a67f08758bc0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_RevolvingLineOfCreditAmendmentNo.7Member_66aa33a1-0521-42df-8789-68f496c21928" xlink:href="glad-20240630.xsd#glad_RevolvingLineOfCreditAmendmentNo.7Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_RevolvingLineOfCreditAmendmentNo.7Member_66aa33a1-0521-42df-8789-68f496c21928" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A775NotesDue2028Member_3e3dfaf8-6ab6-496c-a46f-7603e5c7e4f2" xlink:href="glad-20240630.xsd#glad_A775NotesDue2028Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A775NotesDue2028Member_3e3dfaf8-6ab6-496c-a46f-7603e5c7e4f2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A3.75NotesDue2027Member_7a7f1d09-f1df-4ba5-924d-2429df565b4e" xlink:href="glad-20240630.xsd#glad_A3.75NotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A3.75NotesDue2027Member_7a7f1d09-f1df-4ba5-924d-2429df565b4e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A5.125NotesDue2026Member_9af1b3ba-77d5-491d-a2be-7ffce60c85a7" xlink:href="glad-20240630.xsd#glad_A5.125NotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A5.125NotesDue2026Member_9af1b3ba-77d5-491d-a2be-7ffce60c85a7" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A375NotesDue2027Member_ae66fcf2-c9d1-4ca4-b027-6a4fd4c2a5a7" xlink:href="glad-20240630.xsd#glad_A375NotesDue2027Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A375NotesDue2027Member_ae66fcf2-c9d1-4ca4-b027-6a4fd4c2a5a7" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A5125NotesDue2026Member_14aa533c-c813-4cba-a321-07bf467ecbce" xlink:href="glad-20240630.xsd#glad_A5125NotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A5125NotesDue2026Member_14aa533c-c813-4cba-a321-07bf467ecbce" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_glad_A775NotesDue2028375NotesDue2027And5125NotesDue2026Member_02e31532-f669-4ada-afa8-319eb6827bc4" xlink:href="glad-20240630.xsd#glad_A775NotesDue2028375NotesDue2027And5125NotesDue2026Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain" xlink:to="loc_glad_A775NotesDue2028375NotesDue2027And5125NotesDue2026Member_02e31532-f669-4ada-afa8-319eb6827bc4" xlink:type="arc" order="10"/>
  </link:definitionLink>
</link:linkbase>
